Giter Club home page Giter Club logo

Comments (5)

xz64 avatar xz64 commented on July 20, 2024 1

I'll take a look this weekend

from license-webpack-plugin.

xz64 avatar xz64 commented on July 20, 2024

Can you show me a stack trace and provide an example repo to test on? Thanks.

from license-webpack-plugin.

sumitarora avatar sumitarora commented on July 20, 2024

@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.

sumitarora avatar sumitarora commented on July 20, 2024

@xz64 Any update on this?

from license-webpack-plugin.

xz64 avatar xz64 commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.