I am configuring my Angular 4 app to build using AoT for production, as described in this post and GitHub repository.
There have been lots of errors in this process, mainly pertaining to #types which I have resolved, but there is one curious error that remains when running npm run build:prod:
ERROR in Could not resolve "./app/src/app.module.ts" from "./app/src/app.module.ts".
I have no idea how to solve this, and Googling yields meager results. Can anyone help me out with what this might mean and how to solve it?
I don't know if it's a tsconfig.json error or otherwise. Can anyone help?
Related
I've found myself in a strange predicament—after a recent upgrade to my local app dependencies, the application breaks whenever I make reference to the node process object. Specifically it throws the following errors:
Babel Error: Cannot find module '#babel/plugin-proposal-logical-assignment-operators'
So far, I've tried to resolve this issue with a yarn add of the missing dependency, without success. Could anyone shed light on the issue at hand, or how I might be able to resolve it?
Thanks for your consideration.
I resolved this issue by deleting node_modules and running yarn install.
When trying to truffle compile smart contracts and deploy them to an RPC testnet, I keep encountering
TypeError: resolver.resolve is not a function
at Profiler. (/opt/homebrew/Cellar/truffle/5.3.6/libexec/lib/node_modules/truffle/build/webpack:/packages/compile-common/dist/src/profiler/profiler.js:55:1).
In visual studio code I can't find resolver.resolve anywhere in my code and even cloning projects straight from github it always displays this message when truffle compiling. I have searched everywhere for the resolution and tried debugging myself in the terminal and my current thinking is it's a webpack error but I can't figure out how to solve it. Any help would be greatly appreciated!
I was also in same situation then i find the solution. Follow these steps
Remove node_modules directory & package-lock.json (Not package.json)
Go to your cli & run npm install command
You are done
Hope this solve your problem
I have a problem that when I clone my repository of the app in angular, after installing the node_module and executing the ng serve it throws me this error and I have already looked for a thousand and one answers but none are correct, the app is from angular 8.1 and my angular global is 11 I do not know if it can influence, but it is with the only angular project that happens to me, at times the ng serve lifts the project and it can be seen but I barely make a modification and I give it save this error appears, I need help that advice me give?
enter image description here
I had the same problem.
I solved the problem by disabled the Angular Language Service for that workspace.
I hope this solves your problem
I could find the error, it turns out that VS code as editor every time I ran the npm install and then the ng serve ran perfect, one time I make a modification and give it ctrl + s it bugea my project and when I run the ng serve me again I get the error, so I had to clone my repository again and work with sublime text and it did not give me the error. It must have been some vscode plugin that makes this happen but it is with very few projects.
I am getting the following error when starting my app.
I tried updating node, mongo, and typescript but that didn't help. It was working before until it just stopped suddenly, and I didn't touch any of the files listed in the error.
You can also take a look at tsconfig.json
and tsconfig.build.json
.
How to solve this problem?
After looking on the logs. I would suggest this:
remove node_modules
npm i
try to run project
Mostly error are related to the conflicts. It might be due to the updation of your angular, node and mongoose version.
anyone knows how to solve this problem
while trying to build the solution on heroku .. it makes some errors about this package node-icu-charset-detector
I tried to install this package but - it always gives me these errors on this image