Closed markgoho closed 7 years ago
Okay, I ran rm -rf node_modules
and then ran yarn
and the build worked just fine.
I've been running yarn upgrade
each new day I work on the project, so must be something has changed Angular that's causing the build to fail.
I'm getting this exact same error when I go and deploy this to Firebase when following along in the second video. I had this issue locally too just like you said but removing the node_modules folder and running yarn
fixed it (thanks for your suggestion!). However, deploying this project as instructed in the video yields the same error with very little to work with.
I did an "rm -rf build" and did another "yarn build:production" and a redeploy via firebase deploy
and it worked! Nothing more to see here.
Getting this error same as did Marcidius over a year ago. Already switched using Node version 8.11.1 but that might to too new also.
I also encountered this issue while trying to build and deploy the application for the first time. My fix was to install enhanced-resolve@3.3.0:
npm install enhanced-resolve@3.3.0
thanks @ArwinStrating that helped with the ngfactory issue, I also had an issue with @types/bluebird
package when using npm run build:production
And also when trying to deploy to firebase with public: ""
I got an error:
Error: Must supply a public directory using "public" in each "hosting" config.
changing it to public:'.'
helped
Getting some odd errors when trying to run
yarn build:production
:The build does appear to complete, but then gives me some more errors:
I tried this with my master branch that I've been coding along with your videos, then jumped to the last branch (25 firebase) and got the same errors.