I worked a lot on my JHipster project. After 3 weeks I packaged the project again and tried to run the war.
The war is running but the problem is that there is a problem with the frontend. It shows the Hipster error "An error has occured :-(...".
The console logs:
Uncaught TypeError: Cannot read property 'concat' of undefined
at Module.503
I'm just confused because when I run npm start, everything works. I didn't change the webpack or package.json. I'm using the newest JH version.
I solved my issue. We are using index files in Angular. The order of the exports was not correct. We exported the module first and the module tried to access data from the index which was not exported at this time.
Hope I could help you.
Related
I am fairly new to using webpack in webapps. I am trying to build the vue js and asp.net core SPA using nodejs and webpack. I am facing this error in the screenshot. I have installed the all the dependencies using npm then I tried to run .net core vue app it opens the cshtml web page but dependencies part of the web page are not loaded. Refer another screenshot.
webpack command error
cshtml web page without any css and vue code loaded and is not compiled.
Devdependencies from Package.json
This Build command gives error in screenshot 1
Please let me know if more details are required. I will appreciate any help or suggestions. Thanks
'm posting this here, it might help, i searched my issue on google, and found this thread.
in my case, i have a custom " optin " arg, that i'm using to optin features that are not included in the base build by default. I'm doing that because i have multiple entries and multiple outputs in the same project, and some entries are not always necessary, so i let the user optin for it.
Everything worked fine, but one day i misspelled it and wrote : npm run build.prod -- -optin=myfeature and i got this error, because it was missing one " - " before the optin argument.
So it was the -o argument that was enabled instead, and it was messing up with webpack outputs
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.
I have a project that built fine with ng build --prod until I upgraded the version of TypeScript from 2.72 to 2.92 in my package.json.
After upgrading, I now get the following error:
ERROR in Cannot read property 'Symbol(Symbol.iterator)' of undefined
However, the project builds fine using ng build and runs fine using ng serve so I have no idea where this problem is occurring and the error doesn't tell me where the problem is in my project.
I found the issue. Using resolveJsonModule seems to be the issue as pointed out via this issue on Github: https://github.com/angular/angular/issues/25456
Exact same error. Really surprised that this hasn't been fixed properly.
Problem was I had no clue what the problem was as the error message was so vague. Commenting out my json import in my app.module made the build work as intended.
I created a vue project on my local computer then I tried to put it in my work computers (we have a closed server) but then the project does not run properly both the compile (after runing npm run build) and uncompile version.
The error I get in the uncompile version is in a file name app.js "
Uncaught SyntaxError unexpected token ...
" the error in line 27239 the line is this
...Object(vuex_WEBPACK_IMPORTED_MODULE_0__["mapActions"])(['actionName'])
in the compile version i get two errors of "Uncaught SyntaxError
unexpected token ..." in two files chunk-vendors.261c1333.js ,
app.195dacfc.js
after remove the reference to the mapActions this go for the next file and tell me there is a error syntax in any vuex elements mapState ...
I tried to reinstall the project , rebring the project from my computer , check the project in my project (works fine).
tried to install on other computers in my companay.
tried to remove this import from the project but the i am getting another reference to error in the project this time on ...mapState(['stateName'])
...Object(vuex_WEBPACK_IMPORTED_MODULE_0__["mapActions"])(['actionName'])
...mapState(['stateName']) //show error here in this component
I need to find a way to make it posible for vuex to work on my project I think this is the problem.
So i solved the problem. The issue was that my vue cli version was 2.9.6 and not 3.
So i updated the vue cli version then created a new project with the new cli.
Then moved all the fukes to the new project and it's worked.