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

Error: Cannot find module scanner.cjs #708

Open
UziTech opened this issue May 9, 2023 · 2 comments · May be fixed by #709
Open

Error: Cannot find module scanner.cjs #708

UziTech opened this issue May 9, 2023 · 2 comments · May be fixed by #709

Comments

@UziTech
Copy link

UziTech commented May 9, 2023

scanner.cjs does not exist in the @emmetio/scanner npm package. It only has scanner.js

@sergeche
Copy link
Member

Should be fixed in v1.0.4

@UziTech
Copy link
Author

UziTech commented May 10, 2023

Now the error I get is TypeError: Scanner is not a constructor. I think this has to do with the fact that Scanner is a default export and abbreviation just requires the export object.

var Scanner = require('@emmetio/scanner')

it should be

var Scanner = require('@emmetio/scanner').default

@UziTech UziTech linked a pull request May 11, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants