Closed curlyfro closed 8 years ago
Thanks I forgot to add that. Its in now.
If you aren't running in a visual studio environment, you dont need to run remove-web-tools. I deleted it from the master branch and moved it to the dotnet.core-1.0 branch
i'm running vs2015. checking now.
whoops -- i didn't mean to close
I'm going to update the dotnet branch now.
new error:
cross-env NODE_ENV=development webpack --config config/webpack.development.js --hot --profile --progress --colors --display-cached
'cross-env' is not recognized as an internal or external command, operable program or batch file.
I think it did not finish installing because the one-time-setup failed. Run this in order
npm run clean
npm run onetimesetup
same error.
What is your environment? Windows version, node version, npm version?
cross-env should be globally installed, ill update the repo. This should fix it:
npm install cross-env -g
Also FYI the AOT compilation just broke today, until I fix it, use JIT compilation (devserver:jit and build:dev:jit)
i had to npm install cross-env.
windows 10, node v6.2, npm v3.8.8
ok
Did you get it to run?
you need both .NET server and WDS running at the same time to load the app.
npm run server:dotnetcore
(.net server running on port 5000)
npm run devserver:jit
(webpack dev server running on port 4000)
Load the app from http://localhost:5000
i'm trying jit and i'm getting this error:
[default] C:\Development\TAugustine\angular2-aot-webpack2-typescript-dotnet-master\src\app-components\app\app.routes.ts:49:4 Property 'then' does not exist on type 'string'. [default] Checking finished with 1 errors
I'll check
Are you sure you got the latest version? This is the latest version of app.routes.ts - there's no reference to 'then' in that file.
i'm downloaded the latest. building now... i'll update you in a few.
new error running npm run server:dotnetcore
can't resolve module @angular/core/src/di/metadata from C:\Development\TAugustine\angular2-aot-webpack2-typescript-dotnet-dotnet-core-1.0\index.ts
Error: can't find symbol Host exported from module C:/Development/TAugustine/angular2-aot-webpack2-typescript-dotnet-dotnet-core-1.0/node_modules/@angular/core/src/di/metadata.d.ts
at ReflectorHost.findDeclaration (C:\Development\TAugustine\angular2-aot-webpack2-typescript-dotnet-dotnet-core-1.0\node_modules\@angular\compiler-cli\src\reflector_host.js:173:23)
at StaticReflector.initializeConversionMap (C:\Development\TAugustine\angular2-aot-webpack2-typescript-dotnet-dotnet-core-1.0\node_modules\@angular\compiler-cli\src\static_reflector.js:147:55)
at new StaticReflector (C:\Development\TAugustine\angular2-aot-webpack2-typescript-dotnet-dotnet-core-1.0\node_modules\@angular\compiler-cli\src\static_reflector.js:42:14)
at Function.CodeGenerator.create (C:\Development\TAugustine\angular2-aot-webpack2-typescript-dotnet-dotnet-core-1.0\node_modules\@angular\compiler-cli\src\codegen.js:142:31)
at codegen (C:\Development\TAugustine\angular2-aot-webpack2-typescript-dotnet-dotnet-core-1.0\node_modules\@angular\compiler-cli\src\main.js:7:36)
at Object.main (C:\Development\TAugustine\angular2-aot-webpack2-typescript-dotnet-dotnet-core-1.0\node_modules\@angular\tsc-wrapped\src\main.js:30:16)
at Object.
Hmm something seems weird. npm run server:dotnetcore
simply calls dotnet run
- do you have the dotnet core1.0 framework installed? It shouldnt be loading angular or node_module on that script.
i got the client working now. i'm checking to make sure i have the latest dotnet core installed
Great, let me know
i needed the latest .netcore. it's working now. thanks.
excellent, you're welcome
By the way, the latest commit includes working version of AOT compilation and gZip compression and serving of assets
where's elevate?
C:\Development\TAugustine\angular2-aot-webpack2-typescript-dotnet-master>npm run onetimesetup