An Angular 2 Webpack Starter kit featuring Angular 2, Router, TypeScript, and Webpack by AngularClass
Howdy Yall!!!
Does anybody here use Webpack &/| Browserify and can help a brother out?
I have a browserify bundled code that I would like to wrap with webpack or alternatively bundle in webpack and return an object.
(It's a whole project on it's own)
I tried to bundle it as a library but couldn't get that one final return value.
Any thoughts?
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.