Giter Club home page Giter Club logo

Comments (9)

actra-gschuster avatar actra-gschuster commented on July 26, 2024 3

Try to set it in the resolutions field of package.json, so any dependencies that also require @ngtools/webpack use the exact same version.

from ngc-webpack.

ashishdhyani avatar ashishdhyani commented on July 26, 2024 1

Hi @Edlzotov,
Were you able to fix this issue?

Thanks

from ngc-webpack.

CarlosValencia78 avatar CarlosValencia78 commented on July 26, 2024 1

I am experiencing the same issue, not sure how to even approach this, deleted my node modules, moved around dependencies but it's still acting up for me as well. This happens when I try to run webpack. Here is relevant dependencies from package.json

"dependencies": {
"@angular/compiler-cli": "^6.1.10"
}

"devDependencies": {
"@ngtools/webpack": "^7.2.3",
"ngc-webpack": "^4.1.2"
}

here is my implementation within webpack.config.js

new ngcWebpack.NgcWebpackPlugin({
//AOT commented but does not work uncommented either
//AOT: true,
tsConfigPath: './tsconfig.json',
mainPath: 'src/main.ts'
})

And here is the entire error displayed on the integrated terminal of VSCode:

Error: The "@ngtools/webpack" package installed is not compatible with this version of "ngc-webpack"
at NgcWebpackPlugin.createAngularCompilerPluginExecutionHost [as executionHostFactory] (/Users/adcbqq6/common-ui-lib/node_modules/ngc-webpack/src/plugin.js:9:15)
at NgcWebpackPlugin.apply (/Users/adcbqq6/common-ui-lib/node_modules/ngc-webpack/src/plugin.js:67:34)
at webpack (/Users/adcbqq6/common-ui-lib/node_modules/webpack/lib/webpack.js:47:13)
at processOptions (/Users/adcbqq6/common-ui-lib/node_modules/webpack-cli/bin/cli.js:417:16)
at yargs.parse (/Users/adcbqq6/common-ui-lib/node_modules/webpack-cli/bin/cli.js:498:3)
at Object.parse (/Users/adcbqq6/common-ui-lib/node_modules/webpack-cli/node_modules/yargs/yargs.js:567:18)
at /Users/adcbqq6/common-ui-lib/node_modules/webpack-cli/bin/cli.js:210:8
at Object. (/Users/adcbqq6/common-ui-lib/node_modules/webpack-cli/bin/cli.js:500:3)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/Users/adcbqq6/common-ui-lib/node_modules/webpack/bin/webpack.js:155:2)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3

Please help!!!!

from ngc-webpack.

actra-gschuster avatar actra-gschuster commented on July 26, 2024 1

Try to set it in the resolutions field of package.json, so any dependencies that also require @ngtools/webpack use the exact same version.
"resolutions": {
"@ngtools/webpack": "7.2.3"
}

from ngc-webpack.

mukulstan avatar mukulstan commented on July 26, 2024

@actra-gschuster it doesn't work

from ngc-webpack.

vishu3011 avatar vishu3011 commented on July 26, 2024

I am also getting the same error.
"ngc-webpack": "^4.1.2",
"@ngtools/webpack": "^7.2.3",
Which version of @ngtools/webpack should we install?

from ngc-webpack.

khteh avatar khteh commented on July 26, 2024

"@ngtools/webpack": "^8.3.19",
"ngc-webpack": "^4.1.2",

from ngc-webpack.

khteh avatar khteh commented on July 26, 2024

It has been one year since the original issue post. Anyone working on resolving the issue?

from ngc-webpack.

shlomiassaf avatar shlomiassaf commented on July 26, 2024

Hi guys.

This repo is no longer in active development.

It was created to bridge the gap that existed when the angular CLI was in early stages.

Today, you can easily accomplish everything that this plugin offers, using the CLI alone.

Additionally, for package authors there's the ng-packger.

I strongly suggest that you move to the officially supported solutions that are officially maintained by angular.

from ngc-webpack.

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.