I upgraded my meteor app to 1.6 and there did not appeared to be any problems with the upgrade. When I ran the application it took a long time for the “App Running at: http://localshost:3000” to appear.
Then when I opened the browser and tried running the app I get the following error:
EXCEPTION: Maximum call stack size exceeded
I believe this is due to the fact for some reason I’m unable to read the HTML templates. Currently most of my components are reading in the html as follows:
import template from './partyOne-container.component.html';
@Component ({
selector: 'crm-customers-partyone-container',
template
})
I take the root component and change it to the following it works:
@Component({
selector: 'app',
moduleId: module.id,
templateUrl: 'app/app.component.html',
template: '<h2>We are here<h2>',
...
The app loads just fine and there are no errors. So before I was using meteor 1.5.2 this syntax worked. But for some reason now it does not work. I’ve even tried using the templateUrl with absolute paths and it does not work either:
Here is the app.component.html file
<h1>Do you feel you are being heard.</h1>
Here is the app.component.ts file
@Component({
selector: 'app',
moduleId: module.id,
templateUrl: 'app/app.component.html',
providers: [
RootModalService,
I’ve tried various different absolute paths but none of them seem to work. Does anyone have any idea what would be causing this.
UPDATE
I just noticed that the source maps are not being generated. And when I look at the compiled JavaScript for the line
//** Templates */
import template from './app.component.html';
it gets transpiled as
//** Templates */
const app_component_html_1 = require("./app.component.html");
When I put a break point on that line and inspect the value of app_component_html_1 I get the following:
> app_component_html_1
{default: "client/imports/app/app.component.html"}
Should this be showing the actual contents of the HTML file?