-
-
Notifications
You must be signed in to change notification settings - Fork 512
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
Module build failed with Webpack / Typescript boilerplate & fs-extra #1643
Comments
I'm also seeing some issues with this. I found that the following configuration helps but it actually doesn't solve the problem completely: resolve: {
extensions: [".js", ".ts", ".jsx", ".tsx", ".css", ".json"],
modules: ["node_modules"],
}, |
Rolling back |
Oh wow. I guess in the meantime for those using yarn you can use a yarn resolution to ensure all usages of fs-extra are at 8.1.0 - though I wonder what the breaking changes are between the versions. |
Hi, I stumbled upon this issue and it seems, that it's related to #1929 I just checked, and the I checked, but multiple packages depends on $ npm list fs-extra
kiss-my-resume@0.9.0 /Users/kmacha/Dev/kiss-my-resume
├─┬ @electron-forge/cli@6.0.0-beta.52
│ ├─┬ @electron-forge/core@6.0.0-beta.52
│ │ ├─┬ @electron-forge/installer-dmg@6.0.0-beta.52
│ │ │ ├─┬ @electron-forge/installer-darwin@6.0.0-beta.52
│ │ │ │ └── fs-extra@9.0.1 deduped
│ │ │ └── fs-extra@9.0.1 deduped
│ │ ├─┬ @electron-forge/installer-zip@6.0.0-beta.52
│ │ │ └── fs-extra@9.0.1 deduped
│ │ ├─┬ @electron-forge/template-base@6.0.0-beta.52
│ │ │ └── fs-extra@9.0.1 deduped
│ │ ├─┬ @electron-forge/template-typescript@6.0.0-beta.52
│ │ │ └── fs-extra@9.0.1 deduped
│ │ ├─┬ @electron-forge/template-typescript-webpack@6.0.0-beta.52
│ │ │ └── fs-extra@9.0.1 deduped
│ │ ├─┬ @electron-forge/template-webpack@6.0.0-beta.52
│ │ │ └── fs-extra@9.0.1 deduped
│ │ ├─┬ electron-packager@15.0.0
│ │ │ ├─┬ electron-notarize@1.0.0
│ │ │ │ └── fs-extra@9.0.1 deduped
│ │ │ ├── fs-extra@9.0.1 deduped
│ │ │ └─┬ galactus@0.2.1
│ │ │ ├─┬ flora-colossus@1.0.1
│ │ │ │ └── fs-extra@7.0.1
│ │ │ └── fs-extra@4.0.3
│ │ ├─┬ electron-rebuild@1.11.0
│ │ │ └── fs-extra@8.1.0
│ │ └── fs-extra@9.0.1 deduped
│ ├─┬ @electron/get@1.12.2
│ │ └── fs-extra@8.1.0
│ └── fs-extra@9.0.1
├─┬ @electron-forge/maker-deb@6.0.0-beta.52
│ ├─┬ @electron-forge/maker-base@6.0.0-beta.52
│ │ └── fs-extra@9.0.1 deduped
│ └─┬ electron-installer-debian@3.1.0
│ ├─┬ electron-installer-common@0.10.2
│ │ └── fs-extra@9.0.1 deduped
│ └── fs-extra@9.0.1 deduped
├─┬ @electron-forge/maker-rpm@6.0.0-beta.52
│ └─┬ electron-installer-redhat@3.2.0
│ └── fs-extra@9.0.1 deduped
├─┬ @electron-forge/maker-squirrel@6.0.0-beta.52
│ ├─┬ electron-winstaller@4.0.1
│ │ └── fs-extra@7.0.1
│ └── fs-extra@9.0.1 deduped
├─┬ @electron-forge/maker-zip@6.0.0-beta.52
│ └── fs-extra@9.0.1 deduped
├─┬ @electron-forge/plugin-webpack@6.0.0-beta.52
│ └── fs-extra@9.0.1 deduped
└─┬ live-plugin-manager@0.14.0
└── fs-extra@8.1.0 |
Any update on this issue? It seems like |
the same issue when import electron-updater the fs-extra throw the error ERROR in ./node_modules/fs-extra/lib/ensure/symlink-type.js |
Everyone affected by this isue might try to remove |
This was fixed in beta 58.
If you look at the related PR, it was indeed difficult to do. |
Issue Details
Electron Forge Version: 6.0.0-beta.47
OS: macOS 10.14.6
Expected Behavior
Ability to bundle app and use fs-extra module
Actual Behavior
Upon attempting to use any methods within fs-extra module hit a 'module build failed' error.
To Reproduce
Then update the typescript loader config in webpack.rules.js to the following [else webpack build fails, seems like template is currently broken]:
Then enable node-integration in browser window, update
renderer.ts
to:and finally:
yarn start
Additional Information
The text was updated successfully, but these errors were encountered: