Closed delewis13 closed 3 years ago
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 fs-extra
to 8.1.0
resolved the issue for me, I have not tracked down exactly what is causing the issue with 9.x.x
. Though it may be a good plan to raise an issue on the fs-extra project.
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 live-plugin-manager
depends on "fs-extra": "^9.0.0"
I now tries to downgrade the live-plugin-manager
to version, which depends on fs-extra@8.1.0
but this does not solve my problem.
I checked, but multiple packages depends on fs-extra@9.0.1
and I did not have any problems till I installed live-plugin-manager
$ 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 graphql-tools
is the culprit for my project and ends up failing to load both fs-extra
and fast-glob
with similarly weird errors. Pinning fs-extra
to 8.1.0 works to resolve that error, but still leaves me with issues with fast-glob
.
the same issue when import electron-updater the fs-extra throw the error
ERROR in ./node_modules/fs-extra/lib/ensure/symlink-type.js Module build failed (from ./node_modules/@marshallofsound/webpack-asset-relocator-loader/dist/index.js): SyntaxError: Unexpected token (22:10) at Object.module.exports.pp$4.raise (C:\Users\Admin\Desktop\bilibili-up\node_modules\@marshallofsound\webpack-asset-relocator-loader\dist\index.js:20834:13) at Object.module.exports.pp.unexpected (C:\Users\Admin\Desktop\
Everyone affected by this isue might try to remove webpack-asset-relocator-loader
from their project and use something like copy-webpack-plugin
in case some assets need to to be relocated. For further reference see #1929
Electron forge needs to update their patched version of the webpack-asset-relocator-loader
. Loking at the related commit, it may be not that hard.
Electron forge needs to update their patched version of the
webpack-asset-relocator-loader
.
This was fixed in beta 58.
Loking at the related commit, it may be not that hard.
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