-
Notifications
You must be signed in to change notification settings - Fork 13
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 in ./node_modules/@capacitor-community/file-opener/dist/esm/index.js 3:0-30 #14
Comments
I got sort of the same issue with 1.0.2, where 1.0.1 works. Did you try 1.0.1? |
@ryaa i got the following error message when building this through a nextjs project (typescript).
1.0.1 works fine. |
Tried backing up to 1.0.1 to see if that would help, but that gave me an error about node versions on install. |
Looking at the commit that broke it and the error message, it seems it's the addition of Looking at a couple other community plugins i don't see them having
@ryaa hope this helps, i'm not sure what type:module should do or why you added it? |
I think I made the change to fix this - see. Can someone, having this problem, please install the version of the plugin with the fix and see if it helps. To install please issue the below command: If the above does not help, i will need a sample application (repository in the GitHub with the detailed installation/build steps) that demonstrates the issue. |
Can confirm. This addressed the issue I was having. Thank you! |
Will release this change in 1.0.3 very soon. |
@ryaa didn't help for me. will open a new issue. |
can you please provide a sample application (repository in the GitHub) that demonstrates the issue. Thank you. |
I'm building an app with create-react-app and am getting the following error when adding file-opener.
ERROR in ./node_modules/@capacitor-community/file-opener/dist/esm/index.js 3:0-30
Module not found: Error: Can't resolve './definitions' in 'PATHTOAPP/client/node_modules/@capacitor-community/file-opener/dist/esm'
Did you mean 'definitions.js'?
BREAKING CHANGE: The request './definitions' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
It does work when I edit the file ./node_modules/@capacitor-community/file-opener/dist/esm/index.js line 3 to read:
But, can't have the entire team editing files in node_modules.
The text was updated successfully, but these errors were encountered: