electron-userland / electron-userland/electron-webpack
Error with dll: Error: Can't resolve './vendor.js' in dist
- Dominant language
- TypeScript
- Stars
- 902
- Forks
- 168
- PR merge metrics
- No merged PRs in 30d
Description
* **Version**: 2.8.2
After compiling dll and trying to start the dev server, this error happens:
```
ERROR in ./dist/.renderer-index-template.html (./node_modules/html-loader/dist/cjs.js?minimize=false!./dist/.renderer-index-template.html)
Module not found: Error: Can't resolve './vendor.js' in '/foo/bar/dist'
@ ./dist/.renderer-index-template.html (./node_modules/html-loader/dist/cjs.js?minimize=false!./dist/.renderer-index-template.html) 3:33-55
```
This issue happens because the `vendor.js` is writting into `dist/renderer-dll/vendor.js`, but inside `/dist/.renderer-index-template.html` it is imported without any path.
Issue #155 and pull request #173 addressed this issue already some years ago, but in the meantime `html-loader` seem to removed the `url` parameter which fixed this issue back then.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.