Skip to content
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

plugin will throw error with virtual file #111

Open
wszgrcy opened this issue Dec 10, 2021 · 0 comments
Open

plugin will throw error with virtual file #111

wszgrcy opened this issue Dec 10, 2021 · 0 comments
Assignees

Comments

@wszgrcy
Copy link
Contributor

wszgrcy commented Dec 10, 2021

I create a entry file by use webpack.EntryPlugin.createDependency and custom prefix,
image
and can resolve by readResource
image
but when use license-webpack-plugin, it can find this file(because of create dynamic),and throw error
image
[error] HookWebpackError: ENOENT: no such file or directory, scandir

Error: ENOENT: no such file or directory, scandir
    at Object.readdirSync (fs.js:1047:3)
    at CacheBackend.provideSync (E:\Code\angular\testclass\angular-miniprogram-template\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:233:32)
    at WebpackFileSystem.listPaths (E:\Code\angular\testclass\angular-miniprogram-template\node_modules\license-webpack-plugin\dist\WebpackFileSystem.js:78:24)
    at LicenseTextReader.readLicense (E:\Code\angular\testclass\angular-miniprogram-template\node_modules\license-webpack-plugin\dist\LicenseTextReader.js:37:54)
    at PluginChunkReadHandler.processModule (E:\Code\angular\testclass\angular-miniprogram-template\node_modules\license-webpack-plugin\dist\PluginChunkReadHandler.js:46:62)
    at E:\Code\angular\testclass\angular-miniprogram-template\node_modules\license-webpack-plugin\dist\PluginChunkReadHandler.js:22:23
    at WebpackModuleFileIterator.internalCallback (E:\Code\angular\testclass\angular-miniprogram-template\node_modules\license-webpack-plugin\dist\WebpackModuleFileIterator.js:25:13)
    at WebpackModuleFileIterator.iterateFiles (E:\Code\angular\testclass\angular-miniprogram-template\node_modules\license-webpack-plugin\dist\WebpackModuleFileIterator.js:10:9)
    at E:\Code\angular\testclass\angular-miniprogram-template\node_modules\license-webpack-plugin\dist\PluginChunkReadHandler.js:20:32
    at WebpackChunkModuleIterator.iterateModules (E:\Code\angular\testclass\angular-miniprogram-template\node_modules\license-webpack-plugin\dist\WebpackChunkModuleIterator.js:28:21)

Error will throw in this line
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants