These are chat archives for AngularClass/angular2-webpack-starter

Apr 2016
Tanner Stirrat
Apr 06 2016 01:59
mmm... My thought is it to just put them in with the static files and reference them that way. At least then I know they'll show up...
Attila Egyed
Apr 06 2016 09:21

hi there, is there any documentation on how angular2-hmr works?

and how to use vanilla redux with it? (no rxjs, no ngrx)

Tanner Stirrat
Apr 06 2016 15:29

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?

Tanner Stirrat
Apr 06 2016 16:52
I figured it out. It turned out that the new version relied on an index.ts, which I had deleted, thinking I didn't need it. that meant that main.ts (or whatever its current equivalent is) was trying to import from a module that wasn't well-defined (or something to that effect)