Vishesh Goyal
Vishesh Goyal

Reputation: 59

emailjs not getting resolved even after installing it

I ran the command npm install emailjs-com --save in my project to install email-js but when I import emailjs from "emialjs-com" I'm getting the error can't resolve 'emialjs-com' in '/Users/visheshgoyal/Desktop/Eternal/eternalwebapp/src/components'. Can someone suggest what can be the possible error.

Upvotes: 4

Views: 7931

Answers (2)

Sachin Kumar
Sachin Kumar

Reputation: 21

May be @emailjs/browser has not installed in emailjs. You can install this manually by running:

mailjs/browser

Upvotes: 0

lord_avocado
lord_avocado

Reputation: 51

The SDK name has been changed to '@emailjs/browser'. To fix this problem, install emailjs by running:

npm install @emailjs/browser 

Use the current SDK name instead of 'emailjs-com', which has been deprecated.

https://www.npmjs.com/package/emailjs-com

Upvotes: 5

Related Questions