-
-
Notifications
You must be signed in to change notification settings - Fork 10
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 'fs/promises'" #13
Comments
@mkarras where does it throw that error. Can you provide reproduction steps? |
@mkarras I'm not sure how to change the way that the rollup bundles that file. I think the easiest way for me to solve this issue is to find the first nodeJS version that introduced that submodule and make that the minimum compatible nodeJS version. |
Tomorrow i will update to the latest node 12 version. Hopefully this fix the problem. Or I need to monkey patch your module. |
if it doesn't work let me know ! |
Used the latest note 12 version: 12.22.1 with no success. With node 16 it worked. Need to test if nothing break with this version. Which version do you use? Edit: |
I will try to rewrite the import logic so rollup bundles differently. |
I also get this error. Running the command vue-int --input components --output vetur --recursive with: macOS: v11.2.3 Let me know how I can help :) |
Mine is also broken.
|
I got the same error and also had to upgrade node to make it work. Failed with: node v12.22.6 Worked with: node v14.17.6 |
Pr welcome |
The index.cjs.js file in dist folder uses
require('fs/promises')
instead ofrequire('fs').promises
causing "Error: Cannot find module 'fs/promises'".The text was updated successfully, but these errors were encountered: