Open fathyb opened 6 years ago
in the meantime what can I do as a workaround? do I have to stick with webpack? I don't understand what's causing the issue. I tried <body><script src="./index.js"></script></body>
to a simple index.js containing nothing but a "document.write("hello");" file instead. but that did no good.
As soon as the plugin is loading it triggers the error, it's not due to your code. The temporary solutions are :
parcel-plugin-typescript
instead (templateUrl
, styleUrls
and AOT will not work)parcel-plugin-typescript
About the issue it's due to the IPC system we use. Unix sockets are not supported on Windows and that's why you are getting this error, the fix that has been done in parcel-plugin-typescript
was to use named pipes instead when Windows is used.
yeah this guy : https://github.com/tienne/angular-parcel is using parcel-plugin-typescript
I think I'll build my code from his boilerplate.
thanks for the tips.
I've messed around with bash in windows alot (linux user forced to work on windows in my company) : it's not all you'd think. the system itself is far out of date making the packages you can get at best out of date as well and in any event 99 times out of 100, in companies you're behind firewall and without admin rights so fetching repositories (and everything else) fails and you can't configure a proxy for it without admin rights so...
I published parcel-plugin-angular@0.5.1-next.13
with a fix for Windows, could you try it?
You also need to install parcel-plugin-typescript@^0.5.3
.
considering I'm no expert : how do I do this?
I'm guessing this isn't an available release so just typing that version number (0.5.1-next.13
) in my package.json and npm update
won't do?
Install :
yarn add parcel-plugin-angular@0.5.1-next.13 parcel-plugin-typescript@^0.5.3 --dev
npm install parcel-plugin-angular@0.5.1-next.13 parcel-plugin-typescript@^0.5.3 --save-dev
Check the installed version :
yarn list parcel-plugin-angular
npm ls parcel-plugin-angular
npm ls parcel-plugin-angular
angular-parcel@0.0.0 C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui
`-- parcel-plugin-angular@0.5.1-next.13
with out of the box https://github.com/tienne/angular-parcel, yeah it does work.
I'm going to try and see what happens if I ncu -u
it compiles and the site is up but I get :
UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\polyfill
s.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101021:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101200:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-angular\build\backend\worker\launcher.js:36:27)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at AngularWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:9380) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:9380) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\main.ts'
.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101021:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101200:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-angular\build\backend\worker\launcher.js:36:27)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at AngularWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:9380) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 5): Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\app\app.
module.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101021:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101200:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-angular\build\backend\worker\launcher.js:36:27)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at AngularWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:9380) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\environm
ents\environment.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101021:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101200:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-angular\build\backend\worker\launcher.js:36:27)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at AngularWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:9380) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 7): Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\app\app.
component.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101021:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101200:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-angular\build\backend\worker\launcher.js:36:27)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at AngularWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
Ah, I think it's related to parcel-plugin-typescript#11. Could you show me your tsconfig.json
? If it's not present adding this to the tsconfig.json
may fix the issue :
{
"compilerOptions": { ... },
"include": [
// a glob for all your source files
"src/**/*.ts"
]
}
well i did npm i angular-polyfills
and now it works perfect
here it is anyways :
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
]
}
}
I'm gonna try it without the package and with the glob instead.
ok yeah the glob didn't work the angular-polyfills package works as a better fix. maybe make it a dependency?
EDIT: ok never mind. it's just a first-run error I get anyways. angular-polyfills has nothing to do with it. on second compile (where parcel uses it's cache) the message simply doesn't show up anymore. (I tried each "fix" separately and both together.
it's not breaking anyhow.
It's because it's a type-checking error, Parcel uses the file because it transpiles even if the typechecker crashes (it's run in a separated process for speed).
Does it work if you add include
like said below and run parcel using --no-cache
? (eg. parcel index.html --no-cache
)
Else it could be related to Windows, I will check on a VM later. Thanks for the feedback.
PS C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui> parcel ./src/index.html --no-cache
Server running at http://localhost:1234
ā Building app.component.ts...
Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\polyfills.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101021:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101200:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-angular\build\backend\worker\launcher.js:36:27)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at AngularWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\main.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101021:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101200:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-angular\build\backend\worker\launcher.js:36:27)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at AngularWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\app\app.module.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101021:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101200:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-angular\build\backend\worker\launcher.js:36:27)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at AngularWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\environments\environment.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101021:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101200:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-angular\build\backend\worker\launcher.js:36:27)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at AngularWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\app\app.component.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101021:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101200:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-angular\build\backend\worker\launcher.js:36:27)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at AngularWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
ā Building reflect.js...
Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\app\app.component.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101021:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:101200:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-angular\build\backend\worker\launcher.js:36:27)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at AngularWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:102:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
ā Built in 18.78s.
May be another bug, is Parcel installed locally? (node_modules/parcel-bundler
)
If you have more broad questions you can find me at the Parcel Slack.
no I made a -g
install of parcel-bundler
You need parcel-bundler
installed locally for the plugin to work correctly.
it is also installed locally
hey is this normal ? :
ā Building app.module.ts...ā Building environment.ts...ā Building app.component.ts...ā Building apiConnectService.ts...
Result "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var apiConnectService_1 = require("./services/apiConnectService");
var AppComponent = (function () {
function AppComponent(api) {
this.api = api;
this.title = 'my angular parcel2';
this.title = 'fsfddfsddd';
this.api.getServerDate();
}
AppComponent = __decorate([
core_1.Component({
selector: 'app-root',
template: require('fs').readFileSync(__dirname + "/app.component.html", { encoding: "utf-8" }),
styles: [require('fs').readFileSync(__dirname + "/app.component.css", { encoding: "utf-8" })]
}),
__metadata("design:paramtypes", [typeof (_a = typeof apiConnectService_1.ApiConnectService !== "undefined" && apiConnectService_1.ApiConnectService) === "function" && _a || Object])
], AppComponent);
return AppComponent;
var _a;
}());
exports.AppComponent = AppComponent;
//# sourceMappingURL=app.component.js.map
ā Building platform-browser-dynamic.js...ā Building core.js...ā Building zone.js...ā Building reflect.js...ā Building _empty.js...ā Building platform-browser.js...ā Building es7.reflect.define-metadata.js...ā Building es7.reflect.get-own-metadata.js...ā Building es7.reflect.delete-metadata.js...ā Building es7.reflect.get-own-metadata-keys.js...ā Building es7.reflect.has-own-metadata.js...ā Building es7.reflect.metadata.js...ā Building es7.reflect.get-metadata.js...ā Building es7.reflect.has-metadata.js...ā Building _core.js...ā Building es7.reflect.get-metadata-keys.js...ā Building http.js...ā Building tslib.es6.js...
I'm not sure this was meant to be console logged as part of parcel's build process : S
It happens on successful builds but just 1/2 times.
Woops, what does npm ls parcel-plugin-angular
and npm ls parcel-plugin-typescript
outputs?
well I wan't using parcel-plugin-angular in that case but for typescript it was :
web.ui@0.0.0 C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui
`-- parcel-plugin-typescript@0.2.0-angular.0
Oh, it's a very old version, it's not supported anymore and all the Angular support in this version has been moved here.
ok I'll try newer
if I use :
"parcel-plugin-typescript": "0.5.3",
I get :
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\main.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89078:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89299:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\worker\launcher.js:34:28)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at TypeScriptWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\polyfills.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89078:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89299:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\worker\launcher.js:34:28)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at TypeScriptWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\app\app.module.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89078:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89299:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\worker\launcher.js:34:28)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at TypeScriptWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\environments\environment.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89078:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89299:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\worker\launcher.js:34:28)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at TypeScriptWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\app\app.component.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89078:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89299:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\worker\launcher.js:34:28)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at TypeScriptWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\app\services\apiConnectService.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89078:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89299:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\worker\launcher.js:34:28)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at TypeScriptWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
ā Building es7.reflect.define-metadata.js...ā Building es7.reflect.get-metadata.js...ā Building es7.reflect.delete-metadata.js...ā Building es7.reflect.get-metadata-keys.js...ā Building es7.reflect.get-own-metadata.js...ā Building es7.reflect.get-own-metadata-keys.js...ā Building es7.reflect.has-metadata.js...ā Building es7.reflect.has-own-metadata.js...ā Building es7.reflect.metadata.js...ā Building _core.js...ā Building _metadata.js...ā Building _an-object.js...Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\main.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89078:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89299:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\worker\launcher.js:34:28)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at TypeScriptWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\polyfills.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89078:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89299:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\worker\launcher.js:34:28)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at TypeScriptWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\environments\environment.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89078:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89299:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\worker\launcher.js:34:28)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at TypeScriptWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\app\app.module.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89078:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89299:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\worker\launcher.js:34:28)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at TypeScriptWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
ā Building _object-gpo.js...ā Building _a-function.js...ā Building es6.map.js...ā Building _export.js...ā Building es6.weak-map.js...ā Building _shared.js...ā Building es6.set.js...ā Building _array-from-iterable.js...ā Building _is-object.js...Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\app\services\apiConnectService.ts'.
at getValidSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89078:23)
at Object.getSemanticDiagnostics (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:89299:36)
at LanguageService.check (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\service\index.js:16:24)
at Object.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\worker\launcher.js:34:28)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at TypeScriptWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Does parcel build
works? If it works you can force AOT in watch mode :
{
"compilerOptions": { ... },
// the plugin options
"parcelAngularOptions": {
// What compiler should we use when watching or serving
"watch": "aot",
// What compiler should we use when building (parcel build)
"build": "aot"
}
}
If it still does not work I guess you can still continue with JIT (this should be only a logging error, Parcel should bundle anyways) and in the meantime I'll fix this.
I'm guessing I'm in JIT then ( I had not added that to tsconfig.json
) :
parcel build
Ć Cannot find module 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui' from '.'
at C:\Users\j_bard\AppData\Roaming\npm\node_modules\parcel-bundler\node_modules\browser-resolve\node_modules\resolve\lib\async.js:55:21
at load (C:\Users\j_bard\AppData\Roaming\npm\node_modules\parcel-bundler\node_modules\browser-resolve\node_modules\resolve\lib\async.js:69:43)
at onex (C:\Users\j_bard\AppData\Roaming\npm\node_modules\parcel-bundler\node_modules\browser-resolve\node_modules\resolve\lib\async.js:92:31)
at C:\Users\j_bard\AppData\Roaming\npm\node_modules\parcel-bundler\node_modules\browser-resolve\node_modules\resolve\lib\async.js:22:47
at FSReqWrap.oncomplete (fs.js:152:21)
Thanks, if you are still based on tienne/angular-parcel
I'll try to reproduce this tonight
how did it go š ?
I didn't had as much time as I wanted, I'm able to reproduce it but I still need to find the bug. A temporary workaround that works for me :
include
field in the tsconfig.json
(I checked and it fixes the Cannot find module
errors you are getting)parcel-plugin-angular@0.5.1-next.13
and parcel-plugin-typescript@^0.5.3
.cache
, launch parcel and if it freezes just quit and relaunchhey. I'm still grasping at straws here for a correct angular-parcel setup. as you can see here : https://github.com/tienne/angular-parcel/issues/1 I haven't found a viable package update route. If you can, could you point me in the right direction? thanks š
I've got a new stack with much more up to date packages. ng sever works 100% with even scss working, however parcel does not, it compiles (with errors) and runs but ignores the scss.
{
"name": "web.ui",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"parcel": "parcel",
"start": "parcel ./src/index.html --no-cache",
"build": "parcel build ./src/index.html -d /distribution --no-cache --no-minify",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^5.2.3",
"@angular/common": "^5.2.3",
"@angular/compiler": "^5.2.3",
"@angular/core": "^5.2.3",
"@angular/forms": "^5.2.3",
"@angular/http": "^5.2.3",
"@angular/platform-browser": "^5.2.3",
"@angular/platform-browser-dynamic": "^5.2.3",
"@angular/router": "^5.2.3",
"core-js": "^2.5.3",
"node-sass": "^4.7.2",
"rxjs": "^5.5.6",
"sass-loader": "^6.0.6",
"web-animations-js": "^2.3.1",
"zone.js": "^0.8.20"
},
"devDependencies": {
"@angular/cli": "1.6.7",
"@angular/compiler-cli": "^5.2.3",
"@angular/language-service": "^5.2.3",
"@types/jasmine": "^2.8.6",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~9.4.0",
"codelyzer": "^4.1.0",
"jasmine-core": "~2.9.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~2.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.4.1",
"karma-jasmine": "~1.1.1",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.3.0",
"ts-node": "~4.1.0",
"tslint": "~5.9.1",
"typescript": "~2.7.1",
"parcel-bundler": "^1.5.1",
"postcss-modules": "^1.1.0",
"parcel-plugin-typescript": "^0.5.3",
"parcel-plugin-angular": "0.5.1-next.13"
}
}
any ideas? I think thiss time it's a legitemate parcel issue.
(sorry I have seen the Parcel issue before this one)
How do you require the .scss
files, using styleUrls
?
If you need more step by step help don't hesitate to send me an e-mail if slack is blocked by your corporate firewall.
back at it! š very sorry for the long response. I've been told to go with ng-build. ...but I persist! If I can show them it working they'll accept it.
How do you require the .scss files, using styleUrls?
yes.
below is the updated versions of packages. (since this is for the work I do for my company and in the heap of the work I have to do for them I didn't clear out the stuff not pertaining to pure parcel-angular, I hope you'll forgive me. I've also updated my repo so you can see all the code).
package.json :
{
"name": "web.ui",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"parcel": "parcel",
"start": "parcel ./src/index.html --no-cache",
"build": "parcel build ./src/index.html -d /distribution --no-cache",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"yarn": "node node_modules/yarn/bin/yarn.js"
},
"private": true,
"dependencies": {
"@angular/animations": "^5.2.3",
"@angular/common": "^5.2.3",
"@angular/compiler": "^5.2.3",
"@angular/core": "^5.2.3",
"@angular/forms": "^5.2.3",
"@angular/http": "^5.2.3",
"@angular/platform-browser": "^5.2.3",
"@angular/platform-browser-dynamic": "^5.2.3",
"@angular/router": "^5.2.3",
"angular-2-local-storage": "^1.0.1",
"angular-font-awesome": "^3.1.2",
"core-js": "^2.5.3",
"exitzero": "^1.0.1",
"font-awesome": "^4.7.0",
"ng2-ion-range-slider": "^1.0.3",
"parcel-plugin-inlinesvg": "0.0.12",
"rxjs": "^5.5.6",
"typeface-comfortaa": "0.0.54",
"web-animations-js": "^2.3.1",
"yarn": "^1.3.2",
"zone.js": "^0.8.20"
},
"devDependencies": {
"@angular/cli": "1.7.0",
"@angular/compiler-cli": "^5.2.3",
"@angular/language-service": "^5.2.3",
"@types/jasmine": "^2.8.6",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~9.4.0",
"codelyzer": "^4.1.0",
"jasmine-core": "~3.0.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~2.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.4.1",
"karma-jasmine": "~1.1.1",
"karma-jasmine-html-reporter": "^0.2.2",
"parcel-bundler": "^1.5.1",
"parcel-plugin-angular": "0.5.1-next.13",
"parcel-plugin-typescript": "^0.6.0",
"postcss-modules": "^1.1.0",
"protractor": "~5.3.0",
"ts-node": "~4.1.0",
"tslint": "~5.9.1",
"typescript": "~2.7.0"
}
}
angular.cli.json :
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project": {
"name": "web.ui"
},
"apps": [
{
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico",
"images"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"styles.css",
"../node_modules/typeface-comfortaa/index.css",
"../node_modules/font-awesome/css/font-awesome.css",
"../node_modules/ion-rangeslider/css/ion.rangeSlider.css",
"../node_modules/ion-rangeslider/css/ion.rangeSlider.skinFlat.css"
],
"scripts": [
"../node_modules/jquery/dist/jquery.min.js",
"../node_modules/ion-rangeslider/js/ion.rangeSlider.min.js"
],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
}
],
"e2e": {
"protractor": {
"config": "./protractor.conf.js"
}
},
"lint": [
{
"project": "src/tsconfig.app.json",
"exclude": "**/node_modules/**"
},
{
"project": "src/tsconfig.spec.json",
"exclude": "**/node_modules/**"
},
{
"project": "e2e/tsconfig.e2e.json",
"exclude": "**/node_modules/**"
}
],
"test": {
"karma": {
"config": "./karma.conf.js"
}
},
"defaults": {
"styleExt": "scss",
"component": {
}
},
"warnings": {
"typescriptMismatch": false
}
}
tsconfig.app.json :
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"baseUrl": "./",
"module": "es2015",
"types": []
},
"parcelAngularOptions": {
"watch": "aot",
"build": "aot"
},
"include": [
"src/**/*.ts"
],
"exclude": [
"test.ts",
"**/*.spec.ts"
]
}
For Start :
> web.ui@0.0.0 start C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui
> parcel ./src/index.html --no-cache
Server running at http://localhost:1234
ā Building...
ā Building index.html...ā Building polyfills.ts...ā Building favicon.ico...ā Building main.ts...ā Building app.module.ts...ā Building environment.ts...ā Building web-animations.min.js...ā Building app.component.ts...ā Building api.connect.service.ts...ā Building app.routing.ts...ā Building login.component.ts...ā Building logged-in.component.ts...ā Building four.o.four.component.ts...ā Building is.top.bar.opened.service.ts...ā Building top-bar.component.ts...ā Building content.component.ts...ā Building routing.component.ts...ā Building menu1.intergration.plans.dappro.component.ts...ā Building menu2.integration.des.commandes.component.ts...ā Building menu3.revue.des.commandes.component.ts...ā Building menu4.analyse.plan.dappro.component.ts...ā Building menu5.visualisation.des.articles.component.ts...ā Building menu6.avis.dexpedition.component.ts...Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\4e688ec0-158c-11e8-8a0d-d3cad0f9c87f
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\4e688ec0-158c-11e8-8a0d-d3cad0f9c87f
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\4e688ec0-158c-11e8-8a0d-d3cad0f9c87f
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\4e688ec0-158c-11e8-8a0d-d3cad0f9c87f
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\4e688ec0-158c-11e8-8a0d-d3cad0f9c87f
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\4e688ec0-158c-11e8-8a0d-d3cad0f9c87f
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\4e688ec0-158c-11e8-8a0d-d3cad0f9c87f
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\4e688ec0-158c-11e8-8a0d-d3cad0f9c87f
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\4e688ec0-158c-11e8-8a0d-d3cad0f9c87f
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\4e688ec0-158c-11e8-8a0d-d3cad0f9c87f
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\4e688ec0-158c-11e8-8a0d-d3cad0f9c87f
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\4e688ec0-158c-11e8-8a0d-d3cad0f9c87f
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\4e688ec0-158c-11e8-8a0d-d3cad0f9c87f
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\4e688ec0-158c-11e8-8a0d-d3cad0f9c87f
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\4e688ec0-158c-11e8-8a0d-d3cad0f9c87f
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
ā Building platform-browser-dynamic.js...ā Building core.js...ā Building reflect.js...ā Building zone.js...ā Building .postcssrc...ā Building colors.scss...ā Building root.content.treatment.scss...ā Building scroll.bars.scss...ā Building es7.reflect.delete-metadata.js...ā Building es7.reflect.define-metadata.js...ā Building es7.reflect.get-metadata.js...ā Building es7.reflect.get-own-metadata.js...ā Building es7.reflect.get-metadata-keys.js...ā Building es7.reflect.get-own-metadata-keys.js...ā Building es7.reflect.has-metadata.js...ā Building es7.reflect.has-own-metadata.js...ā Building es7.reflect.metadata.js...ā Building _core.js...ā Building airConnectText.png...ā Building angular-font-awesome.es5.js...ā Building index.js...ā Building css-loader.js...ā Building airSupply-s.png...ā Building airSupply.png...ā Building responsive.design.scss...ā Building favicon.ico...ā Building _metadata.js...ā Building _an-object.js...ā Building _object-gpo.js...ā Building _array-from-iterable.js...ā Building es6.set.js...ā Building _a-function.js...ā Building ion-range-slider.module.js...ā Building ion-range-slider.component.js...ā Building router.animations.ts...ā Building _export.js...ā Building es6.weak-map.js...ā Building es6.map.js...ā Building _shared.js...ā Building _to-object.js...ā Building _has.js...ā Building _shared-key.js...ā Building _collection-strong.js...ā Building _validate-collection.js...ā Building _collection.js...ā Building _is-object.js...ā Building _for-of.js...ā Building _global.js...ā Building _hide.js...ā Building _redefine.js...ā Building _ctx.js...ā Building bundle-url.js...ā Building style.for.menu.containing.table.scss...ā Building table.style.scss...ā Building _array-methods.js...ā Building _meta.js...ā Building _collection-weak.js...ā Building _object-assign.js...ā Building _fails.js...ā Building _defined.js...ā Building _uid.js...ā Building _object-dp.js...ā Building _object-create.js...ā Building _redefine-all.js...ā Building _an-instance.js...ā Building _iter-step.js...ā Building _iter-define.js...ā Building _set-species.js...ā Building _descriptors.js...ā Building _iter-detect.js...ā Building _inherit-if-required.js...ā Building _set-to-string-tag.js...ā Building _iter-call.js...ā Building _is-array-iter.js...ā Building _to-length.js...ā Building core.get-iterator-method.js...ā Building _property-desc.js...ā Building _iobject.js...ā Building _array-species-create.js...ā Building _object-keys.js...ā Building _object-gops.js...ā Building _object-pie.js...ā Building _ie8-dom-define.js...ā Building _to-primitive.js...ā Building _object-dps.js...ā Building _enum-bug-keys.js...ā Building _dom-create.js...ā Building _html.js...ā Building _iterators.js...ā Building _library.js...ā Building _iter-create.js...ā Building _wks.js...ā Building _set-proto.js...ā Building _to-integer.js...ā Building _classof.js...ā Building _cof.js...ā Building _array-species-constructor.js...ā Building _object-keys-internal.js...ā Building _object-gopd.js...ā Building _is-array.js...ā Building _to-iobject.js...ā Building _array-includes.js...ā Building _to-absolute-index.js...ā Building platform-browser.js...ā Building http.js...ā Building animations.js...ā Building ion.rangeSlider.js...ā Building jquery.js...ā Building tslib.es6.js...ā Building Observable.js...ā Building Subject.js...ā Building router.js...ā Building toSubscriber.js...ā Building observable.js...ā Building root.js...ā Building Subscriber.js...ā Building Subscription.js...ā Building SubjectSubscription.js...ā Building pipe.js...ā Building rxSubscriber.js...ā Building ObjectUnsubscribedError.js...ā Building isFunction.js...ā Building isObject.js...ā Building isArray.js...ā Building tryCatch.js...ā Building errorObject.js...ā Building UnsubscriptionError.js...ā Building Observer.js...ā Building noop.js...ā Building browser.js...ā Building common.js...ā Building compiler.js...ā Building animations.js...ā Building merge.js...ā Building share.js...ā Building catch.js...ā Building retry.js...ā Building do.js...ā Building map.js...ā Building share.js...ā Building catch.js...ā Building retry.js...ā Building do.js...ā Building map.js...ā Building mergeAll.js...ā Building ArrayObservable.js...ā Building isScheduler.js...ā Building multicast.js...ā Building refCount.js...ā Building catchError.js...ā Building retry.js...ā Building tap.js...ā Building map.js...ā Building EmptyObservable.js...ā Building mergeMap.js...ā Building ScalarObservable.js...ā Building identity.js...ā Building ConnectableObservable.js...ā Building OuterSubscriber.js...ā Building subscribeToResult.js...ā Building InnerSubscriber.js...ā Building isArrayLike.js...ā Building isPromise.js...ā Building iterator.js...ā Building of.js...ā Building filter.js...ā Building concatMap.js...ā Building filter.js...ā Building concatMap.js...ā Building browser.js...ā Building BehaviorSubject.js...ā Building bufferCount.js...ā Building filter.js...ā Building from.js...ā Building last.js...ā Building concatAll.js...ā Building fromPromise.js...ā Building every.js...ā Building mergeMap.js...ā Building EmptyError.js...ā Building reduce.js...ā Building PromiseObservable.js...ā Building last.js...ā Building FromObservable.js...ā Building reduce.js...ā Building concatAll.js...ā Building bufferCount.js...ā Building every.js...ā Building mergeAll.js...ā Building first.js...ā Building IteratorObservable.js...ā Building ArrayLikeObservable.js...ā Building observeOn.js...ā Building takeLast.js...ā Building scan.js...ā Building defaultIfEmpty.js...ā Building bufferCount.js...ā Building first.js...ā Building Notification.js...ā Building ArgumentOutOfRangeError.js...ā Building hmr-runtime.js...ā Built in 31.37s.
for build :
PS C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui> parcel build ./src/index.html -d /distribution --no-cache
Ć C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\polyfills.ts: Error: Error: Path should be absolute
at FileStore.readFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\compiler\store.js:25:19)
at FileStore.readSource (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\compiler\store.js:55:27)
at AngularCompilerHost.getSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\compiler\host.js:13:31)
at TsCompilerAotCompilerTypeCheckHostAdapter.getOriginalSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\@angular\compiler-cli\src\transformers\compiler_host.js:237:31)
at TsCompilerAotCompilerTypeCheckHostAdapter.getSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\@angular\compiler-cli\src\transformers\compiler_host.js:335:23)
at findSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:75050:29)
at args (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:74987:85)
at getSourceFileFromReferenceWorker (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:74960:34)
at processSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:74987:13)
at processRootFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:74841:13)
at AngularWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at FileStore.readFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\compiler\store.js:25:19)
at FileStore.readSource (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\compiler\store.js:55:27)
at AngularCompilerHost.getSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\backend\compiler\host.js:13:31)
at TsCompilerAotCompilerTypeCheckHostAdapter.getOriginalSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\@angular\compiler-cli\src\transformers\compiler_host.js:237:31)
at TsCompilerAotCompilerTypeCheckHostAdapter.getSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\@angular\compiler-cli\src\transformers\compiler_host.js:335:23)
at findSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:75050:29)
at args (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:74987:85)
at getSourceFileFromReferenceWorker (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:74960:34)
at processSourceFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:74987:13)
at processRootFile (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\typescript\lib\typescript.js:74841:13)
at AngularWorker.<anonymous> (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\worker\index.js:27:19)
at Generator.next (<anonymous>)
at fulfilled (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\tslib\tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at IncomingMessage.res.setEncoding.on (C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\node_modules\parcel-plugin-typescript\build\ipc\client.js:31:32)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
PS C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui>
in webbrowser console :
Uncaught TypeError: (0 , _core.Component) is not a function
at 0f55d50ffb2d0e97dec680cddd53f535.js:98458
at Object.require.35.@angular/core (0f55d50ffb2d0e97dec680cddd53f535.js:98464)
at newRequire (0f55d50ffb2d0e97dec680cddd53f535.js:42)
at localRequire (0f55d50ffb2d0e97dec680cddd53f535.js:48)
at Object.require.4.@angular/core (0f55d50ffb2d0e97dec680cddd53f535.js:111895)
at newRequire (0f55d50ffb2d0e97dec680cddd53f535.js:42)
at require.146 (0f55d50ffb2d0e97dec680cddd53f535.js:69)
at 0f55d50ffb2d0e97dec680cddd53f535.js:74
@tatsujb I updated parcel-plugin-typescript
to 0.7.0
with bug fixes in Windows. Could you try it with parcel-plugin-angular@0.5.1-next.13
?
not looking so hot :
> parcel ./src/index.html --no-cache
Server running at http://localhost:1234
ā Building...
ā Building index.html...ā Building main.ts...ā Building polyfills.ts...ā Building favicon.ico...ā Building environment.ts...ā Building app.module.ts...ā Building web-animations.min.js...ā Building app.component.ts...ā Building login.component.ts...ā Building logged.in.component.ts...ā Building four.o.four.component.ts...ā Building api.connect.service.ts...ā Building is.top.bar.opened.service.ts...ā Building purchase.orders.filter.service.ts...ā Building app.routing.ts...ā Building top.bar.component.ts...ā Building content.component.ts...ā Building purchase.orders.table.service.ts...ā Building routing.component.ts...ā Building double.slider.component.ts...ā Building page.selector.component.ts...ā Building items.component.ts...ā Building purchase.orders.component.ts...ā Building review.table.component.ts...ā Building filters.component.ts...Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\3b8c4960-1d32-11e8-b90a-9b6d9aaf187d
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\3b8c4960-1d32-11e8-b90a-9b6d9aaf187d
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\3b8c4960-1d32-11e8-b90a-9b6d9aaf187d
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\3b8c4960-1d32-11e8-b90a-9b6d9aaf187d
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\3b8c4960-1d32-11e8-b90a-9b6d9aaf187d
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\3b8c4960-1d32-11e8-b90a-9b6d9aaf187d
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\3b8c4960-1d32-11e8-b90a-9b6d9aaf187d
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\3b8c4960-1d32-11e8-b90a-9b6d9aaf187d
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\3b8c4960-1d32-11e8-b90a-9b6d9aaf187d
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\3b8c4960-1d32-11e8-b90a-9b6d9aaf187d
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\3b8c4960-1d32-11e8-b90a-9b6d9aaf187d
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\3b8c4960-1d32-11e8-b90a-9b6d9aaf187d
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\3b8c4960-1d32-11e8-b90a-9b6d9aaf187d
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\3b8c4960-1d32-11e8-b90a-9b6d9aaf187d
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\3b8c4960-1d32-11e8-b90a-9b6d9aaf187d
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\3b8c4960-1d32-11e8-b90a-9b6d9aaf187d
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
ā Building core.js...ā Building platform-browser-dynamic.js...ā Building object.js...ā Building symbol.js...ā Building function.js...ā Building string.js...ā Building parse-int.js...ā Building date.js...ā Building array.js...ā Building map.js...ā Building weak-map.js...ā Building set.js...ā Building zone.js...ā Building number.js...ā Building parse-float.js...ā Building reflect.js...ā Building regexp.js...ā Building
then it just infinitely waits hogging lots of CPU in a loop.
no webpage.
I've updated the git repo.
I'm ever persuaded it might be something wrong I'm doing.
What version of Windows are you using? I think (not sure at all) named pipes are only Windows 8+.
I'm using window 10 pro 64bit 1709 OS NĀ°: 16299.248
Hey. sorry to pester. š¶ Is there any progress?
hey recently parcel-bundler got an upgrade (1.6.2) and all of angular is now up to (5.2.8)
could this have helped?
Apologies for the lateness, did not see the notifications. Does it work now? I don't know it worked with a fresh Windows install for me, perhaps it was something else on your environment?
Updating Angular may have helped though, I did not ran per-version compatibility tests.
no it doesn't not work for me.
perhaps it's still the firewall? I doubt it but that's the only real influencing/differing factor I see.
lemme try again. with what repo/push are you having success?
Your repo with the last next
version of the Angular plugin and the last version of the TypeScript plugin
that doesn't work for me š¢
I get :
ā Building web-animations.min.js...
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\ParcelAngularScss\bf00f040-278a-11e8-a6cf-1591cd10c4b6
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\ParcelAngularScss\bf00f040-278a-11e8-a6cf-1591cd10c4b6
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
Ć C:\Users\j_bard\WebstormProjects\ParcelAngularScss\src\app\app.module.ts:30:38: Cannot resolve dependency './logged.i 28 | import {FourOFour} from './four.o.four/four.o.four.component';ularScss\src\app\logged.in\logged.in.component'
29 | import {ReviewTable} from './logged.in/content/routing/purchase.orders/review.table/review.table.component';
> 30 | import {DoubleSlider} from './assets/components/double.slider/double.slider.component';
| ^
31 | import {PageSelector} from './assets/components/page.selector/page.selector.component';
32 | import {FiltersComponent} from './logged.in/content/routing/purchase.orders/filters/filters.component';
33 | import {PurchaseOrdersTableService} from './assets/services/purchase.orders.table.service';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(17,43)
Cannot find module './assets/services/purchase.orders.filter.service'.
16 | import {IsTopBarOpenedService} from './assets/services/is.top.bar.opened.service';
> 17 | import {PurchaseOrdersFilterService} from './assets/services/purchase.orders.filter.service';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 |
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(22,33)
Cannot find module './logged.in/logged.in.component'.
21 | import {LoginComponent} from './login/login.component';
> 22 | import {LoggedInComponent} from './logged.in/logged.in.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23 | import {TopBarComponent} from './logged.in/top.bar/top.bar.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(23,31)
Cannot find module './logged.in/top.bar/top.bar.component'.
22 | import {LoggedInComponent} from './logged.in/logged.in.component';
> 23 | import {TopBarComponent} from './logged.in/top.bar/top.bar.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24 | import {ContentComponent} from './logged.in/content/content.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(24,32)
Cannot find module './logged.in/content/content.component'.
23 | import {TopBarComponent} from './logged.in/top.bar/top.bar.component';
> 24 | import {ContentComponent} from './logged.in/content/content.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 | import {RoutingComponent} from './logged.in/content/routing/routing.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(25,32)
Cannot find module './logged.in/content/routing/routing.component'.
24 | import {ContentComponent} from './logged.in/content/content.component';
> 25 | import {RoutingComponent} from './logged.in/content/routing/routing.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 | import {Items} from './logged.in/content/routing/items/items.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(26,21)
Cannot find module './logged.in/content/routing/items/items.component'.
25 | import {RoutingComponent} from './logged.in/content/routing/routing.component';
> 26 | import {Items} from './logged.in/content/routing/items/items.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 | import {PurchaseOrders} from './logged.in/content/routing/purchase.orders/purchase.orders.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(27,30)
Cannot find module './logged.in/content/routing/purchase.orders/purchase.orders.component'.
26 | import {Items} from './logged.in/content/routing/items/items.component';
> 27 | import {PurchaseOrders} from './logged.in/content/routing/purchase.orders/purchase.orders.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28 | import {FourOFour} from './four.o.four/four.o.four.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(29,27)
Cannot find module './logged.in/content/routing/purchase.orders/review.table/review.table.component'.
28 | import {FourOFour} from './four.o.four/four.o.four.component';
> 29 | import {ReviewTable} from './logged.in/content/routing/purchase.orders/review.table/review.table.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30 | import {DoubleSlider} from './assets/components/double.slider/double.slider.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(30,28)
Cannot find module './assets/components/double.slider/double.slider.component'.
29 | import {ReviewTable} from './logged.in/content/routing/purchase.orders/review.table/review.table.component';
> 30 | import {DoubleSlider} from './assets/components/double.slider/double.slider.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 | import {PageSelector} from './assets/components/page.selector/page.selector.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(31,28)
Cannot find module './assets/components/page.selector/page.selector.component'.
30 | import {DoubleSlider} from './assets/components/double.slider/double.slider.component';
> 31 | import {PageSelector} from './assets/components/page.selector/page.selector.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32 | import {FiltersComponent} from './logged.in/content/routing/purchase.orders/filters/filters.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(32,32)
Cannot find module './logged.in/content/routing/purchase.orders/filters/filters.component'.
31 | import {PageSelector} from './assets/components/page.selector/page.selector.component';
> 32 | import {FiltersComponent} from './logged.in/content/routing/purchase.orders/filters/filters.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33 | import {PurchaseOrdersTableService} from './assets/services/purchase.orders.table.service';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(33,42)
Cannot find module './assets/services/purchase.orders.table.service'.
32 | import {FiltersComponent} from './logged.in/content/routing/purchase.orders/filters/filters.component';
> 33 | import {PurchaseOrdersTableService} from './assets/services/purchase.orders.table.service';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34 |
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(17,43)
Cannot find module './assets/services/purchase.orders.filter.service'.
16 | import {IsTopBarOpenedService} from './assets/services/is.top.bar.opened.service';
> 17 | import {PurchaseOrdersFilterService} from './assets/services/purchase.orders.filter.service';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 |
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(22,33)
Cannot find module './logged.in/logged.in.component'.
21 | import {LoginComponent} from './login/login.component';
> 22 | import {LoggedInComponent} from './logged.in/logged.in.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23 | import {TopBarComponent} from './logged.in/top.bar/top.bar.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(23,31)
Cannot find module './logged.in/top.bar/top.bar.component'.
22 | import {LoggedInComponent} from './logged.in/logged.in.component';
> 23 | import {TopBarComponent} from './logged.in/top.bar/top.bar.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24 | import {ContentComponent} from './logged.in/content/content.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(24,32)
Cannot find module './logged.in/content/content.component'.
23 | import {TopBarComponent} from './logged.in/top.bar/top.bar.component';
> 24 | import {ContentComponent} from './logged.in/content/content.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 | import {RoutingComponent} from './logged.in/content/routing/routing.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(25,32)
Cannot find module './logged.in/content/routing/routing.component'.
24 | import {ContentComponent} from './logged.in/content/content.component';
> 25 | import {RoutingComponent} from './logged.in/content/routing/routing.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 | import {Items} from './logged.in/content/routing/items/items.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(26,21)
Cannot find module './logged.in/content/routing/items/items.component'.
25 | import {RoutingComponent} from './logged.in/content/routing/routing.component';
> 26 | import {Items} from './logged.in/content/routing/items/items.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 | import {PurchaseOrders} from './logged.in/content/routing/purchase.orders/purchase.orders.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(27,30)
Cannot find module './logged.in/content/routing/purchase.orders/purchase.orders.component'.
26 | import {Items} from './logged.in/content/routing/items/items.component';
> 27 | import {PurchaseOrders} from './logged.in/content/routing/purchase.orders/purchase.orders.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28 | import {FourOFour} from './four.o.four/four.o.four.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(29,27)
Cannot find module './logged.in/content/routing/purchase.orders/review.table/review.table.component'.
28 | import {FourOFour} from './four.o.four/four.o.four.component';
> 29 | import {ReviewTable} from './logged.in/content/routing/purchase.orders/review.table/review.table.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30 | import {DoubleSlider} from './assets/components/double.slider/double.slider.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(30,28)
Cannot find module './assets/components/double.slider/double.slider.component'.
29 | import {ReviewTable} from './logged.in/content/routing/purchase.orders/review.table/review.table.component';
> 30 | import {DoubleSlider} from './assets/components/double.slider/double.slider.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 | import {PageSelector} from './assets/components/page.selector/page.selector.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(31,28)
Cannot find module './assets/components/page.selector/page.selector.component'.
30 | import {DoubleSlider} from './assets/components/double.slider/double.slider.component';
> 31 | import {PageSelector} from './assets/components/page.selector/page.selector.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32 | import {FiltersComponent} from './logged.in/content/routing/purchase.orders/filters/filters.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(32,32)
Cannot find module './logged.in/content/routing/purchase.orders/filters/filters.component'.
31 | import {PageSelector} from './assets/components/page.selector/page.selector.component';
> 32 | import {FiltersComponent} from './logged.in/content/routing/purchase.orders/filters/filters.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33 | import {PurchaseOrdersTableService} from './assets/services/purchase.orders.table.service';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/app.module.ts(33,42)
Cannot find module './assets/services/purchase.orders.table.service'.
32 | import {FiltersComponent} from './logged.in/content/routing/purchase.orders/filters/filters.component';
> 33 | import {PurchaseOrdersTableService} from './assets/services/purchase.orders.table.service';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34 |
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/assets/routes/app.routing.ts(2,23)
Cannot find module '../../logged.in/content/routing/items/items.component'.
1 | import { RouterModule } from '@angular/router';
> 2 | import { Items } from '../../logged.in/content/routing/items/items.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 | import { PurchaseOrders } from '../../logged.in/content/routing/purchase.orders/purchase.orders.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/assets/routes/app.routing.ts(3,32)
Cannot find module '../../logged.in/content/routing/purchase.orders/purchase.orders.component'.
2 | import { Items } from '../../logged.in/content/routing/items/items.component';
> 3 | import { PurchaseOrders } from '../../logged.in/content/routing/purchase.orders/purchase.orders.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4 | import { FourOFour } from '../../four.o.four/four.o.four.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/assets/routes/app.routing.ts(2,23)
Cannot find module '../../logged.in/content/routing/items/items.component'.
1 | import { RouterModule } from '@angular/router';
> 2 | import { Items } from '../../logged.in/content/routing/items/items.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 | import { PurchaseOrders } from '../../logged.in/content/routing/purchase.orders/purchase.orders.component';
C:/Users/j_bard/WebstormProjects/ParcelAngularScss/src/app/assets/routes/app.routing.ts(3,32)
Cannot find module '../../logged.in/content/routing/purchase.orders/purchase.orders.component'.
2 | import { Items } from '../../logged.in/content/routing/items/items.component';
> 3 | import { PurchaseOrders } from '../../logged.in/content/routing/purchase.orders/purchase.orders.component';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4 | import { FourOFour } from '../../four.o.four/four.o.four.component';
with my latest version I get :
"C:\Users\j_bard\AppData\Roaming\JetBrains\WebStorm 181.3986.8\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" start
> web.ui@0.0.0 start C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui
> parcel ./src/index.html --no-cache
Server running at http://localhost:1234
ā Building...
ā Building index.html...ā Building main.ts...ā Building polyfills.ts...ā Building favicon.ico...ā Building environment.ts...ā Building app.module.ts...ā Building web-animations.min.js...ā Building app.component.ts...ā Building login.component.ts...ā Building logged.in.component.ts...ā Building four.o.four.component.ts...ā Building api.connect.service.ts...ā Building animations.service.ts...ā Building purchase.orders.filter.service.ts...ā Building app.routing.ts...ā Building top.bar.component.ts...ā Building content.component.ts...ā Building purchase.orders.table.service.ts...ā Building routing.component.ts...ā Building page.selector.component.ts...ā Building double.slider.component.ts...ā Building items.component.ts...ā Building purchase.orders.component.ts...ā Building review.table.component.ts...ā Building details.component.ts...ā Building filters.component.ts...Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\ebf3f010-278b-11e8-a88e-7f305efcfde7
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\ebf3f010-278b-11e8-a88e-7f305efcfde7
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\ebf3f010-278b-11e8-a88e-7f305efcfde7
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\ebf3f010-278b-11e8-a88e-7f305efcfde7
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\ebf3f010-278b-11e8-a88e-7f305efcfde7
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\ebf3f010-278b-11e8-a88e-7f305efcfde7
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\ebf3f010-278b-11e8-a88e-7f305efcfde7
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\ebf3f010-278b-11e8-a88e-7f305efcfde7
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\ebf3f010-278b-11e8-a88e-7f305efcfde7
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\ebf3f010-278b-11e8-a88e-7f305efcfde7
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\ebf3f010-278b-11e8-a88e-7f305efcfde7
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\ebf3f010-278b-11e8-a88e-7f305efcfde7
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\ebf3f010-278b-11e8-a88e-7f305efcfde7
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\ebf3f010-278b-11e8-a88e-7f305efcfde7
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\ebf3f010-278b-11e8-a88e-7f305efcfde7
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
Unhandled promise rejection: Error: connect ENOENT \\?\pipe\C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\ebf3f010-278b-11e8-a88e-7f305efcfde7
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
ā Building platform-browser-dynamic.js...ā Building core.js...ā Building object.js...ā Building function.js...ā Building parse-int.js...ā Building symbol.js...ā Building parse-float.js...ā Building math.js...ā Building number.js...ā Building string.js...ā Building array.js...ā Building map.js...ā Building weak-map.js...ā Building regexp.js...ā Building reflect.js...ā Building zone.js...ā Building date.js...ā Building set.js...
we are talking about this repo right : https://github.com/tatsujb/ParcelAngularScss ?
https://stackoverflow.com/questions/43625615/npm-start-shows-unhandled-promise-rejection-error
could one of these issues be the cause?
I AM using material and I AM using promises/observables.
I've pushed to the repo again.
I don't think so, I'm at work right now, I'll re-check at home :)
hey! :) sorry it's been awhile my project has been on hiatus (and still is) in the meantime I'm on other angular projects where I don't have a hand on the stack but I want to keep on top of this topic so that you know that I'm not abandoning you and that if there is a fix I know about it.
Related to parcel-plugin-typescript#12.
Reported on parcel#722 by @tatsujb
Original report :
š Configuration (.babelrc, package.json, cli command)
./package.json :
./src/index.html :
./src/app/app.component.ts :
š¤ Expected Behavior
compiled and served angular-cli.
šÆ Current Behavior
the page title and favicon is correct but it's otherwise blank.
š¦ Context
trying to set up a front in angular 5 served with parcel
š Your Environment