Reputation: 59
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
Reputation: 21
May be @emailjs/browser
has not installed in emailjs. You can install this manually by running:
mailjs/browser
Upvotes: 0
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