Title: Cannot find module 'webpack' after moving from @latest to @next · Issue #11148 · angular/angular-cli · GitHub
Open Graph Title: Cannot find module 'webpack' after moving from @latest to @next · Issue #11148 · angular/angular-cli
X Title: Cannot find module 'webpack' after moving from @latest to @next · Issue #11148 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [x] bug report Area - [x] devkit Versions nodejs10.4.0 npm6.1.0 Angular CLI: 6.1.0-beta.2 Node: 10.4.0 OS: win32 x64 Angular: 6.1.0-beta.0 ... common, compiler, compiler-cli, core, forms, ...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [x] bug report Area - [x] devkit Versions nodejs10.4.0 npm6.1.0 Angular CLI: 6.1.0-beta.2 Node: 10.4.0 OS: win32 x64 Angular: 6.1.0-beta.0 ... commo...
X Description: Bug Report or Feature Request (mark with an x) - [x] bug report Area - [x] devkit Versions nodejs10.4.0 npm6.1.0 Angular CLI: 6.1.0-beta.2 Node: 10.4.0 OS: win32 x64 Angular: 6.1.0-beta.0 ... commo...
Opengraph URL: https://github.com/angular/angular-cli/issues/11148
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot find module 'webpack' after moving from @latest to @next","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report \r\n```\r\n\r\n### Area\r\n```\r\n- [x] devkit\r\n```\r\n\r\n### Versions\r\n```\r\nnodejs10.4.0\r\nnpm6.1.0\r\nAngular CLI: 6.1.0-beta.2\r\nNode: 10.4.0\r\nOS: win32 x64\r\nAngular: 6.1.0-beta.0\r\n... common, compiler, compiler-cli, core, forms, http\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.7.0-beta.2 (cli-only)\r\n@angular-devkit/build-angular 0.7.0-beta.2\r\n@angular-devkit/build-webpack 0.7.0-beta.2\r\n@angular-devkit/core 0.7.0-beta.2 (cli-only)\r\n@angular-devkit/schematics 0.7.0-beta.2 (cli-only)\r\n@angular/cdk 6.2.1\r\n@angular/cli 6.1.0-beta.2\r\n@angular/material 6.2.1\r\n@schematics/angular 0.7.0-beta.2 (cli-only)\r\n@schematics/update 0.7.0-beta.2 (cli-only)\r\nrxjs 6.2.0\r\ntypescript 2.7.2\r\n```\r\n\r\n\r\n### Repro steps\r\nI was in cli 6 and want try `ng update --next --all` it cancel me cause of peer dependances\r\n`ng update --next --all --force` success but get me last version of typescrip, I need manually in package.json write ~2.7.2 then `npm install`\r\n\r\nAfter that I run `ng serve` and I get : \r\n```\r\nCannot find module 'webpack'\r\nError: Cannot find module 'webpack'\r\n at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)\r\n at Function.Module._load (internal/modules/cjs/loader.js:520:25)\r\n at Module.require (internal/modules/cjs/loader.js:650:17)\r\n at require (internal/modules/cjs/helpers.js:20:18)\r\n at Object.\u003canonymous> (C:\\Users\\...\\node_modules\\@angular-devkit\\build-webpack\\src\\webpack\\index.js:6:17)\r\n at Module._compile (internal/modules/cjs/loader.js:702:30)\r\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)\r\n at Module.load (internal/modules/cjs/loader.js:612:32)\r\n at tryModuleLoad (internal/modules/cjs/loader.js:551:12)\r\n at Function.Module._load (internal/modules/cjs/loader.js:543:3)\r\n```\r\nThen I remove `node_modules` manually then rerun `npm install` -> same error output.\r\n\r\n### Desired functionality\r\nFirst of all avoid always update typescript to last version keep only supported version. Then I desire to update easily.\r\n\r\n\r\n### Mention any other details that might be useful\r\nActually I can't quit this @next and come back to @latest I need fix my package.json manually. Damn!\r\n\r\ncc @filipesilva \r\n","author":{"url":"https://github.com/elvisbegovic","@type":"Person","name":"elvisbegovic"},"datePublished":"2018-06-07T07:26:32Z","url":"https://github.com/angular/angular-cli/issues/11148"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:588be177-f4dc-9b5c-c9f4-e1724955a3fd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A7EA:22DB35:1A452FA:2196BC8:6B013B4A |
| html-safe-nonce | 76f66a0b9602ac0ad83433700a06b5b36c70ff3c8b1b1e46be136ea925730e53 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0VBOjIyREIzNToxQTQ1MkZBOjIxOTZCQzg6NkIwMTNCNEEiLCJ2aXNpdG9yX2lkIjoiMjkwMzc0NTE3MjA2MTg5NTQ5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d902f3e4968e65c1703d944adb0ac7f08fa21dacdffbeb7bb928ab8b01826877 |
| hovercard-subject-tag | issue:330148674 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/11148/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cee461f27ea95cc36490bfe6ba64d98b70dbcc4b11ad9db25b6a64d3e0a62b5d/angular/angular-cli/issues/11148 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cee461f27ea95cc36490bfe6ba64d98b70dbcc4b11ad9db25b6a64d3e0a62b5d/angular/angular-cli/issues/11148 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [x] bug report Area - [x] devkit Versions nodejs10.4.0 npm6.1.0 Angular CLI: 6.1.0-beta.2 Node: 10.4.0 OS: win32 x64 Angular: 6.1.0-beta.0 ... commo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | elvisbegovic |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width