question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular build failing on 8.1.5

See original GitHub issue

Good morning, it seems that a new version was just released. After updating im receiving a handful of errors.

ERROR in ./src/styles.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleError: Module Error (from ./node_modules/postcss-loader/dist/cjs.js):
Loading PostCSS "postcss-scss" syntax failed: Package subpath './lib/stringifier' is not defined by "exports" in G:\WebDev\nestjs\ptrack\employee-client\node_modules\postcss-scss\node_modules\postcss\package.json

(@G:\WebDev\nestjs\ptrack\employee-client\src\styles.scss)
    at Object.emitError (G:\WebDev\nestjs\ptrack\employee-client\node_modules\webpack\lib\NormalModule.js:173:6)
    at getPostcssOptions (G:\WebDev\nestjs\ptrack\employee-client\node_modules\postcss-loader\dist\utils.js:252:21)
    at Object.loader (G:\WebDev\nestjs\ptrack\employee-client\node_modules\postcss-loader\dist\index.js:64:36)

ERROR in Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
TypeError: Cannot read property 'parse' of undefined
    at new LazyResult (G:\WebDev\nestjs\ptrack\employee-client\node_modules\postcss\lib\lazy-result.js:57:18)
    at Processor.<anonymous> (G:\WebDev\nestjs\ptrack\employee-client\node_modules\postcss\lib\processor.js:138:12)
    at Processor.process (G:\WebDev\nestjs\ptrack\employee-client\node_modules\postcss\lib\processor.js:117:23)
    at Object.loader (G:\WebDev\nestjs\ptrack\employee-client\node_modules\postcss-loader\dist\index.js:94:51)

package.json

  "dependencies": {
    "@angular/animations": "~10.2.0",
    "@angular/cli": "~10.2.0",
    "@angular/common": "~10.2.0",
    "@angular/compiler": "~10.2.0",
    "@angular/compiler-cli": "~10.2.0",
    "@angular/core": "~10.2.0",
    "@angular/forms": "~10.2.0",
    "@angular/platform-browser": "~10.2.0",
    "@angular/platform-browser-dynamic": "~10.2.0",
    "@angular/router": "~10.2.0",
    "@angular/service-worker": "~10.2.0",
    "@zxing/browser": "0.0.5",
    "@zxing/library": "^0.18.3",
    "@zxing/ngx-scanner": "3.0.0",
    "jwt-decode": "^3.0.0",
    "ng-qrcode": "^4.0.1",
    "ngx-mask": "^10.0.4",
    "rxjs": "~6.6.0",
    "tslib": "^2.0.0",
    "zone.js": "~0.10.2"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.1002.0",
    "@types/jasmine": "~3.5.0",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "^12.11.1",
    "codelyzer": "^6.0.0",
    "jasmine-core": "~3.6.0",
    "jasmine-spec-reporter": "~5.0.0",
    "karma": "~5.0.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage-istanbul-reporter": "~3.0.2",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "^1.5.0",
    "ngx-build-plus": "latest",
    "ngx-tailwind": "^0.5.1",
    "postcss-import": "12.0.1",
    "postcss-loader": "latest",
    "postcss-scss": "latest",
    "protractor": "~7.0.0",
    "tailwindcss": "latest",
    "ts-node": "~8.3.0",
    "tslint": "~6.1.0",
    "typescript": "~4.0.2"
  }

Reverting resolves the error. Thank you.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
aicommented, Nov 5, 2020

The fix was released in PostCSS 8.1.6

1reaction
aicommented, Nov 5, 2020

Thanks =^_^=

The best way to support PostCSS development is our OpenCollective.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Having Node module issue after upgrade to native script 8.1.5
After upgraded to 8.1.5, Having node modules error. My package.json. { "description": "Order Next Application" ...
Read more >
Guide to update your Angular application v11.0 -> v12.0 for ...
I use ngUpgrade to combine AngularJS & Angular. I use Angular Material. I use Windows ... Add null checks to avoid TypeScript failing...
Read more >
NativeScript 8.1 Released
ns build android --config=nativescript.config.prod.ts # will load the ... JavaScript language features which would silently fail to build ...
Read more >
Add bootstrap colors - Developers Community by KeenThemes
metronic@8.1.5 build > webpack. >> Building metronic bundle... >> Failed to compile metronic bundle! ModuleBuildError: Module build failed (from .
Read more >
Installing Angular-cli on a new machine without Visual Studio
Node 14 installed VS 2017 build tools. npm install -g angular-cli fails again with this error npm ERR! LINK : fatal error LNK1181:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found