You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make easy-scroll work via import. After installing it via cli I tried multiple ways of importing but always get an error:
import easyScroll from 'easy-scroll';
TypeError: Module specifier does not start with "/", "./", or "../".
import easyScroll from '../../node_modules/easy-scroll/dist/easy-scroll.js';
SyntaxError: Importing binding name 'default' cannot be resolved by star export entries.
import { easyScroll } from '../../node_modules/easy-scroll/dist/easy-scroll.js';
SyntaxError: Importing binding name 'easyScroll' is not found.
Any leads? (Including it via scrip in html works though)
The text was updated successfully, but these errors were encountered:
I'm trying to make easy-scroll work via import. After installing it via cli I tried multiple ways of importing but always get an error:
import easyScroll from 'easy-scroll';
TypeError: Module specifier does not start with "/", "./", or "../".
import easyScroll from '../../node_modules/easy-scroll/dist/easy-scroll.js';
SyntaxError: Importing binding name 'default' cannot be resolved by star export entries.
import { easyScroll } from '../../node_modules/easy-scroll/dist/easy-scroll.js';
SyntaxError: Importing binding name 'easyScroll' is not found.
Any leads? (Including it via scrip in html works though)
The text was updated successfully, but these errors were encountered: