Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import fails #13

Open
sc00 opened this issue Aug 31, 2020 · 0 comments
Open

import fails #13

sc00 opened this issue Aug 31, 2020 · 0 comments

Comments

@sc00
Copy link

sc00 commented Aug 31, 2020

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:

  1. import easyScroll from 'easy-scroll';
    TypeError: Module specifier does not start with "/", "./", or "../".

  2. import easyScroll from '../../node_modules/easy-scroll/dist/easy-scroll.js';
    SyntaxError: Importing binding name 'default' cannot be resolved by star export entries.

  3. 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant