-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
Cannot find module 'strtok3/core' from 'node_modules/file-type/core.js' #548
Comments
@Matthew-McRaven I'm having the same issue, did you find a solution to it? @sindresorhus is there any coming update to fix this? |
I ended up forking the project and fixing the import paths. |
@Matthew-McRaven i think you should just do a pull req on the package.json quick fix |
@anton000, This isn't a package.json fix. You have to modify core.js:3 and fix the import path. I'm not entirely confident that this error isn't an artifact of my build environment (yarn 3 using lerna in a monorepo), so I opted for a fork with the fixes. If the author of the project or another maintainer can replicate the bug in a less specialized environment, I'd happily submit a PR. |
also facing the same issue after updating from 16.4.0 to 17.1.4
UPDATE: Issue solved for me. |
The path 'strtok3/core' was wrong indeed, sorry issue was hard to distinct from the many basic ESM issues. |
lib folder is missing on strtok3 package You can confirm this by |
Woah Nases, what a timely answer. That worked for me |
Issue Borewit/strtok3#1143, has been resolved in [email protected] |
Hello,
I have version 17.1.2 installed in a project.
When I attempt to use this library I get the error
Cannot find module 'strtok3/core' from 'node_modules/file-type/core.js'
This seems to be caused by core.js:3 referencing
strtok3/core
instead ofstrtok3/lib/core
.Maybe this is a problem with my local setup, but wanted to see if there was an easy resolution to this issue.
The text was updated successfully, but these errors were encountered: