Comments (5)
I'll take a look this weekend
from license-webpack-plugin.
Can you show me a stack trace and provide an example repo to test on? Thanks.
from license-webpack-plugin.
@xz64 Here is the repo to test on https://github.com/sumitarora/angular2-webpack after doing npm install
just run npm build
and you should see error. Below is the stack trace of the same.
~/w/o/t/angular2-webpack master *$… npm run build 2.9m Mon 6 Mar 11:12:20 2017
> [email protected] build /Users/sumitarora/workspace/open-source/temp/angular2-webpack
> rimraf dist && webpack --progress --profile --bail
10% building modules 0/3 modules 3 active ...rce/temp/angular2-webpack/src/main.ts
[at-loader] Using [email protected] from typescript and "tsconfig.json" from /Users/sumitarora/workspace/open-source/temp/angular2-webpack/tsconfig.json.
5839ms building modules
7ms sealing
1ms optimizing
0ms basic module optimization
5ms module optimization
0ms advanced module optimization
13ms basic chunk optimization
0ms chunk optimization
2ms advanced chunk optimization
19ms building modules
0ms module and chunk tree optimization
6ms module reviving
0ms module order optimization
2ms module id optimization
1ms chunk reviving
0ms chunk order optimization
3ms chunk id optimization
24ms hashing
0ms module assets processing
42ms chunk assets processing
6ms additional chunk assets processing
1ms recording
17606ms additional asset processing
2490ms chunk asset optimization
94% asset optimization
[at-loader] Checking started in a separate process...
[at-loader] Ok, 0.591 sec.
676ms asset optimization
95% emittingError: ENOTDIR: not a directory, open '/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/@angular/core/@angular/core.es5.js/package.json'
at Object.fs.openSync (fs.js:558:18)
at Object.fs.readFileSync (fs.js:468:33)
at licensePlugin.readPackageJson (/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/license-webpack-plugin/index.js:26:19)
at licensePlugin.getModuleInfo (/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/license-webpack-plugin/index.js:30:28)
at licensePlugin.<anonymous> (/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/license-webpack-plugin/index.js:85:31)
at Array.filter (native)
at licensePlugin.writeModuleInfo (/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/license-webpack-plugin/index.js:81:8)
at licensePlugin.gatherModuleInfo (/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/license-webpack-plugin/index.js:106:10)
at licensePlugin.<anonymous> (/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/license-webpack-plugin/index.js:202:12)
at Compiler.applyPlugins (/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/tapable/lib/Tapable.js:61:14)
at /Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/webpack/lib/Compiler.js:255:13
at Compiler.emitRecords (/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/webpack/lib/Compiler.js:351:37)
at /Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/webpack/lib/Compiler.js:249:12
at /Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/webpack/lib/Compiler.js:344:11
at next (/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/tapable/lib/Tapable.js:154:11)
at Compiler.compiler.plugin (/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
at next (/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/tapable/lib/Tapable.js:156:14)
at callback (/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/copy-webpack-plugin/dist/index.js:108:17)
at Compiler.<anonymous> (/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/copy-webpack-plugin/dist/index.js:131:13)
at Compiler.applyPluginsAsyncSeries1 (/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/tapable/lib/Tapable.js:158:13)
at Compiler.afterEmit (/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/webpack/lib/Compiler.js:341:8)
at Compiler.<anonymous> (/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/webpack/lib/Compiler.js:336:14)
at /Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/webpack/node_modules/async/dist/async.js:359:16
at iteratorCallback (/Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/webpack/node_modules/async/dist/async.js:935:13)
at /Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/webpack/node_modules/async/dist/async.js:843:16
at /Users/sumitarora/workspace/open-source/temp/angular2-webpack/node_modules/graceful-fs/graceful-fs.js:43:10
at FSReqWrap.oncomplete (fs.js:112:15)
from license-webpack-plugin.
@xz64 Any update on this?
from license-webpack-plugin.
I see the problem now. The plugin is not detecting scoped packages properly which contain '@' twice. For example, the plugin determines for the module name for the file node_modules/@angular/platform-browser/@angular/platform-browser.es5.js
is @angular/platform-browser/@angular/platform-browser.es5.js
instead of @angular/platform-browser
. I will push a fix for this.
from license-webpack-plugin.
Related Issues (20)
- when module.resource startsWith `delegated` and throw error HOT 1
- incompatible with webpack 5.47.0 HOT 3
- missing webpack-sources in dependencies HOT 3
- Add loader to load the generated licenses report HOT 1
- Improve pathExists and isDirectory performance once graceful-fs supports it HOT 1
- Support inclusion of extra licenses HOT 1
- plugin will throw error with virtual file
- Type 'LicenseWebpackPlugin' is not assignable to type 'WebpackPluginInstance'.
- Licenses of ES modules in concatenated modules are not emitted HOT 1
- [Webpack 5] Banner rendered, but license file not created
- Version 4.0.1 doesn't respect the excludedPackageTest option HOT 4
- Version 4.0.1 fails when using dynamic imports HOT 2
- make it possible to define lines in `licenseFileOverrides` HOT 2
- turn off warnings for specific packets HOT 1
- License whitelist HOT 1
- ENOENT: No such file or directory, scandir (only on windows) HOT 5
- Suggestion: adjustment for license filename match
- Packages with similar names cause `Multiple assets emit different content to the same filename` error. HOT 1
- Could not find any license file for vega-lite HOT 1
- Support UNLICENSE file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from license-webpack-plugin.