Reputation:
I followed the update guide as recommend but I am getting some errors I am unsure about.
People have suggested I install rxjs-compat
but this just gives more errors:
Here is my package.json I have stripped out anything that is not needed or can do without to try find find the culprit of my issue
{
"name": "verado",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "6.0.0",
"@angular/common": "6.0.0",
"@angular/compiler": "6.0.0",
"@angular/core": "6.0.0",
"@angular/forms": "6.0.0",
"@angular/http": "6.0.0",
"@angular/platform-browser": "6.0.0",
"@angular/platform-browser-dynamic": "6.0.0",
"@angular/router": "6.0.0",
"@moltin/sdk": "^3.8.3",
"@ng-bootstrap/ng-bootstrap": "^2.0.0",
"@types/graceful-fs": "^4.1.2",
"@types/lodash": "^4.14.108",
"angular-cc-library": "^1.2.3",
"core-js": "^2.4.1",
"font-awesome": "^4.7.0",
"graceful-fs": "^4.1.11",
"lodash": "^4.17.10",
"rxjs": "^6.1.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.6.0",
"@angular/cli": "6.0.0",
"@angular/compiler-cli": "6.0.0",
"@angular/language-service": "6.0.0",
"@types/jasmine": "~2.8.3",
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
"codelyzer": "^4.0.1",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~2.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.2",
"ts-node": "~4.1.0",
"tslint": "~5.9.1",
"typescript": "2.7.2"
}
}
Upvotes: 1
Views: 179
Reputation:
The issue was with the @moltin/js-sdk
dependency loading node-localstorage
in the browser which made the complier throw a vague error. graceful-fs
is not the culprit only a symptom of the above.
As a workaround I have added:
"paths": {
"node-localstorage": ["noop.js"]
}
noop.js contains:
export const noop = () => undefined;
Upvotes: 2
Reputation: 949
Try removing node_modules and reinstalling with npm i
, it did fix all my errors.
Upvotes: 0