IAMtheIAM / angular-webpack-nodejs-starter

Starter project featuring Angular 4+, (with AOT compilation), TypeScript, Webpack 3 (with Tree Shaking, Hot Module Replacement, and SASS), Debugging Webpack Build, Debugging Angular Application, and Gzip Compression of assets. Integrated with a NodeJS webserver backend with example API routes.
36 stars 5 forks source link

The system cannot find the path specified. #1

Closed curlyfro closed 8 years ago

curlyfro commented 8 years ago

where's elevate?

C:\Development\TAugustine\angular2-aot-webpack2-typescript-dotnet-master>npm run onetimesetup

Angular-2-Webpack-Typescript-DotNET-Starter@1.7.0 preonetimesetup C:\Development\TAugustine\angular2-aot-webpack2-typescript-dotnet-master npm run remove-web-tools

Angular-2-Webpack-Typescript-DotNET-Starter@1.7.0 remove-web-tools C:\Development\TAugustine\angular2-aot-webpack2-typescript-dotnet-master cd ../PowerShell && elevate.exe -c renamer --find "External" --replace "External_DISABLED" "%ProgramFiles(x86)%/Microsoft Visual Studio 14.0/Common7/IDE/Extensions/Microsoft/Web Tools/External

IAMtheIAM commented 8 years ago

Thanks I forgot to add that. Its in now.

IAMtheIAM commented 8 years ago

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

curlyfro commented 8 years ago

i'm running vs2015. checking now.

curlyfro commented 8 years ago

whoops -- i didn't mean to close

IAMtheIAM commented 8 years ago

I'm going to update the dotnet branch now.

curlyfro commented 8 years ago

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.

IAMtheIAM commented 8 years ago

I think it did not finish installing because the one-time-setup failed. Run this in order

npm run clean npm run onetimesetup

curlyfro commented 8 years ago

same error.

IAMtheIAM commented 8 years ago

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

IAMtheIAM commented 8 years ago

Also FYI the AOT compilation just broke today, until I fix it, use JIT compilation (devserver:jit and build:dev:jit)

curlyfro commented 8 years ago

i had to npm install cross-env.

windows 10, node v6.2, npm v3.8.8

curlyfro commented 8 years ago

ok

IAMtheIAM commented 8 years ago

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

curlyfro commented 8 years ago

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

IAMtheIAM commented 8 years ago

I'll check

IAMtheIAM commented 8 years ago

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.

curlyfro commented 8 years ago

i'm downloaded the latest. building now... i'll update you in a few.

curlyfro commented 8 years ago

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. (C:\Development\TAugustine\angular2-aot-webpack2-typescript-dotnet-dotnet-core-1.0\node_modules\@angular\compiler-cli\src\main.js:14:9) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:458:32) Compilation failed

IAMtheIAM commented 8 years ago

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.

curlyfro commented 8 years ago

i got the client working now. i'm checking to make sure i have the latest dotnet core installed

IAMtheIAM commented 8 years ago

Great, let me know

curlyfro commented 8 years ago

i needed the latest .netcore. it's working now. thanks.

IAMtheIAM commented 8 years ago

excellent, you're welcome

IAMtheIAM commented 8 years ago

By the way, the latest commit includes working version of AOT compilation and gZip compression and serving of assets