An Angular 2 Webpack Starter kit featuring Angular 2, Router, TypeScript, and Webpack by AngularClass
PatrickJS on master
Update README.md (compare)
moduleId: module.id,
templateUrl: 'myFile.tpl.html'
I'm running into a different problem now. I updated to the most recent version of webpack, and I'm getting an error that says:
Error: Cannot resolve 'file' or 'directory' ./app in /home/tstirrat/project-gutenberg/node/src
Required in /home/tstirrat/project-gutenberg/node/src/main.browser.ts Error: Cannot resolve 'file' or 'directory' ./app in /home/tstirrat/project-gutenberg/node/src
Required in /home/tstirrat/project-gutenberg/node/src/main.browser.ts
at ResolutionError.Error (native)
at new ResolutionError (/home/tstirrat/project-gutenberg/node/node_modules/awesome-typescript-loader/dist/deps.js:281:7)
at /home/tstirrat/project-gutenberg/node/node_modules/awesome-typescript-loader/dist/deps.js:164:33
at run (/home/tstirrat/project-gutenberg/node/node_modules/core-js/modules/es6.promise.js:89:22)
at /home/tstirrat/project-gutenberg/node/node_modules/core-js/modules/es6.promise.js:102:28
at flush (/home/tstirrat/project-gutenberg/node/node_modules/core-js/modules/_microtask.js:14:5)
at nextTickCallbackWith0Args (node.js:452:9)
at process._tickCallback (node.js:381:13)
But I've got app
in that directory. ls output:
app assets custom-typings.d.ts index.html main.browser.ts npm-debug.log platform polyfills.ts vendor.ts
Any idea what's going on?
Hello, any one knows how to async load a component that has child routes.
This works:
{ path: '/about', name: 'About', loader: () => require('es6-promise!./about')('About') },
But this throws an error:
{ path: '/...', name: 'Exam', loader: () => require('es6-promise!./exam')('Exam') },
The error is: "Tried to get instruction before the type was loaded".
.js
files from vendor/
in my index.html
which obviously fail because the vendor
folder is never dispatched to the browser.
noLib: true
to tsconfig.json, but that led to even more issues. Not sure how to go about getting core-js to play nicely with TypeScript when setting the target to es6