Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular 2 won't compile in webpack when using built SDK #42

Closed
JoshElias opened this issue Jul 16, 2016 · 3 comments
Closed

Angular 2 won't compile in webpack when using built SDK #42

JoshElias opened this issue Jul 16, 2016 · 3 comments
Assignees
Milestone

Comments

@JoshElias
Copy link

I've followed the instructions for generating the angular2 sdk in the documention and receive the following error when building my project with webpack.

ERROR in ./src/client/app/shared/lb-services/services/api.d.ts
Module build failed: Error: Debug Failure. False expression: Output generation failed
    at Object.assert (C:\Users\Josh\Documents\Github\muskoka\node_modules\typescript\lib\typescript.js:2099:23)
    at Object.transpileModule (C:\Users\Josh\Documents\Github\muskoka\node_modules\typescript\lib\typescript.js:53173:18)
    at State.fastEmit (C:\Users\Josh\Documents\Github\muskoka\node_modules\awesome-typescript-loader\dist.babel\host.js:302:43)
    at transform (C:\Users\Josh\Documents\Github\muskoka\node_modules\awesome-typescript-loader\dist.babel\index.js:215:53)
    at _callee3$ (C:\Users\Josh\Documents\Github\muskoka\node_modules\awesome-typescript-loader\dist.babel\index.js:265:42)
    at tryCatch (C:\Users\Josh\Documents\Github\muskoka\node_modules\regenerator-runtime\runtime.js:62:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Users\Josh\Documents\Github\muskoka\node_modules\regenerator-runtime\runtime.js:336:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (C:\Users\Josh\Documents\Github\muskoka\node_modules\regenerator-runtime\runtime.js:95:21)
    at fulfilled (C:\Users\Josh\Documents\Github\muskoka\node_modules\awesome-typescript-loader\dist.babel\index.js:31:32)
    at run (C:\Users\Josh\Documents\Github\muskoka\node_modules\core-js\modules\es6.promise.js:89:22)
    at C:\Users\Josh\Documents\Github\muskoka\node_modules\core-js\modules\es6.promise.js:102:28
    at flush (C:\Users\Josh\Documents\Github\muskoka\node_modules\core-js\modules\_microtask.js:18:9)
    at nextTickCallbackWith0Args (node.js:420:9)
    at process._tickCallback (node.js:349:13)
 @ ./src/client/app/shared/lb-services/index.ts 22:9-36
@jonathan-casarrubias
Copy link
Collaborator

jonathan-casarrubias commented Jul 16, 2016

Are you using a starter? I will verify the issue early in the morning. I have been testing with angular cli and nativescript

@JoshElias
Copy link
Author

Yeah I'm using this as a starter: https://github.com/AngularClass/angular2-webpack-starter. It just seems to be that one api.d.ts file that's giving me the problem. I wonder if its my tsconfig settings? I tried rolling back to typescript 1.8 from 2.0 and that didn't work. Thanks for the speedy response!

@jonathan-casarrubias jonathan-casarrubias changed the title Problem compiling angular2 sdk Angular 2 won't compile in webpack when using built SDK Jul 16, 2016
@jonathan-casarrubias jonathan-casarrubias self-assigned this Jul 16, 2016
jonathan-casarrubias pushed a commit that referenced this issue Jul 16, 2016
- Refactor SDK Structure (Internal Breaking Change - External istransparent)
- First refactor draft for generator logic
- Fixed bug #41
- Fixed bug #42
- Upgrade Angular 2 test app to RC4
@jonathan-casarrubias
Copy link
Collaborator

jonathan-casarrubias commented Jul 16, 2016

fixed in release candidate 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants