Lately, I've been experimenting with angular2-meteor in conjunction with TypeScript, and I've already worked on several projects.
The issue I'm facing has occurred before, and my previous solution involved removing and reinstalling node_modules and meteor to fix it.
Since the problem has resurfaced again, I decided to post this question instead of going through the entire reinstallation process to see if anyone can offer insights into this error.
Initially, I set up an Angular2-Meteor project following the instructions provided at
Currently, the application is quite basic.
In the client directory, I have a main app.ts file with the following code:
(insert provided code here...)
As shown, I have two view components, 'Welcome' and 'Statistics', while also utilizing angular2-material for the toolbar.
The view components mainly consist of templateUrls that point to empty HTML files.
For example: welcome.ts
(insert provided code here...)
My main index.html file in the client directory contains:
<body><app></app></body>
The app.html content includes:
(insert provided code here...)
Despite not believing the error is directly related to my code, as I've encountered it in other projects, it still persists.
This is the package.json configuration:
(insert provided code here...)
The .meteor/packages file includes the following packages:
(insert provided code here...)
Lastly, after all that setup, here's the error message itself:
[Insert provided error message here...]
Any insights or ideas on what may be causing this issue would be highly appreciated!
Update
I backed up the project to another directory, deleted the node_modules folder, and ran meteor npm install --save
. After doing so, the application started working fine. It seems something caused the application to break, and recreating the node_modules folder resolved the issue.
It's frustrating having to go through this process each time I start a new project.
Any help regarding this issue would be greatly welcomed. Thanks!