This repository was archived by the owner on May 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 312
This repository was archived by the owner on May 1, 2020. It is now read-only.
Template paths are not resolved correctly #160
Copy link
Copy link
Closed
Description
Short description of the problem:
The watch task fails to start with a lot of errors. It seems to be using a wrong path (src/src
). It worked on 0.0.30, but fails on 0.0.31 and up.
It also seems unable to find main.dev.ts
, while the path that is logged is correct.
[10:06:18] ionic-app-scripts 0.0.33
[10:06:18] watch started ... MEM: 90.5MB
[10:06:18] build dev started ... MEM: 90.5MB
[10:06:18] clean started ... MEM: 90.5MB
[ DEBUG! ] clean /path/to/app/folder/www/build MEM: 90.5MB
[10:06:18] clean finished in 6 ms MEM: 90.5MB
[10:06:18] copy started ... MEM: 90.5MB
[ DEBUG! ] worker created, task: lint, pid: 3570 MEM: 90.7MB
[10:06:18] transpile started ... MEM: 90.7MB
[ DEBUG! ] ts.createProgram, cachedProgram: false MEM: 101.9MB
[ DEBUG! ] tslint config: /path/to/app/folder/tslint.json MEM: 53.5MB
[10:06:19] lint started ... MEM: 53.7MB
//
// This repeats for all of my pages and components that are using a template file:
//
[10:06:28] template error, "/path/to/app/folder/src/src/components/calendar/calendar.html": MEM: 253.4MB
Error: ENOENT: no such file or directory, open '/path/to/app/folder/src/src/components/calendar/calendar.html'
[10:06:28] template error, "/path/to/app/folder/src/src/pages/calendar/calendar.html": MEM: 253.4MB
Error: ENOENT: no such file or directory, open '/path/to/app/folder/src/src/pages/calendar/calendar.html'
[10:06:28] template error, "/path/to/app/folder/src/src/app/app.template.html": Error: MEM: 256.3MB
ENOENT: no such file or directory, open '/path/to/app/folder/src/src/app/app.template.html'
[ DEBUG! ] Error matching component: Component({ templateUrl: 'app.template.html' }) MEM: 256.3MB
//
// End repeat
//
[10:06:28] transpile finished in 9.78 s MEM: 256.4MB
[10:06:28] bundle started ... MEM: 256.4MB
[ DEBUG! ] entry: /path/to/app/folder/src/app/main.dev.ts, dest: /path/to/app/folder/www/build/main.js,
cache: undefined, format: iife MEM: 256.4MB
unable to find /path/to/app/folder/src/app/main.dev.ts
[10:06:28] copy finished in 9.91 s MEM: 256.8MB
[10:06:32] lint finished in 13.04 s MEM: 215.8MB
[ DEBUG! ] worker resolve, task: lint, pid: 3570 MEM: 215.8MB
[ DEBUG! ] worker exited, task: lint, pid: 3570 MEM: 319.9MB
(node:3569) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Could not resolve './app.module' from /path/to/app/folder/src/app/main.dev.ts
Running live reload server: http://localhost:35729
Watching: www/**/*, !www/lib/**/*
√ Running dev server: http://localhost:8100
Which @ionic/app-scripts version are you using?
0.0.33
konrin, rehiy, RobertWeaver, danielcrk-cn, marcoturi and 3 more
Metadata
Metadata
Assignees
Labels
No labels