Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

error message when missing resource under ng_module should suggest adding to assets #77

Closed
webdevelopland opened this issue Feb 7, 2018 · 4 comments

Comments

@webdevelopland
Copy link

Hi Alex,
I read your answer about templateUrl in Tracking issue: Angular, Bazel, and Closure (ABC) #19058
templateurl-answer

But it doesn't work for me:
abc-templateurl-error

INFO: Analysed target //src:devserver (0 packages loaded).
INFO: Found 1 target...
ERROR: /home/locked/Documents/bootstrap/storage/nodejs/ABC-test/src/hello-world/BUILD.bazel:16:1: Compiling Angular templates (ngc) //src/hello-world:hello-world failed (Exit 1)
: Couldn't resolve resource ./hello-world.component.html from /home/locked/.cache/bazel/_bazel_locked/04371b4e354c316eda352185c1a7abef/bazel-sandbox/2455399387462227982/execroot/an
gular_bazel_example/src/hello-world/hello-world.component.ts

Target //src:devserver failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 6.217s, Critical Path: 4.08s
FAILED: Build did NOT complete successfully
ERROR: Build failed. Not running target
Error starting process: fork/exec /tmp/bazel_script_path059461791: permission denied
Run start failed fork/exec /tmp/bazel_script_path059461791: permission denied
Triggering live reload
requesting reload: reload
State: WAIT

What I do wrong?

@alexeagle
Copy link
Contributor

Is that HTML file visible to the compiler? It needs to be listed in the assets of the ng_module rule.

@webdevelopland
Copy link
Author

It worked! Thank you so much.

@alexeagle alexeagle changed the title templateUrl doesn't work error message when missing resource under ng_module should suggest adding to assets Feb 8, 2018
@alexeagle
Copy link
Contributor

I'll keep this open to track improving the error message so it will be easier for the next person to fix

@alexeagle
Copy link
Contributor

moving to angular/angular#22095

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

No branches or pull requests

2 participants