-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
attempts to resolve href asset containing template syntax #1153
Comments
Hmm, why is parcel running over your templates? Shouldn't you run them through a templating engine first? |
this is an angularJS app, so the template engine is clientside |
I am hitting this too. This (valid client side) AngularJS template syntax is being interpreted as a literal resource: ...resulting in:
webpack's html-loader uses Perhaps Parcel could borrow the regex from it? See: I'm presuming this would need to be added somewhere in: |
@rodney757 Workaround (and recommended by angular official docs) is to use |
If |
I still have an issue with non angular framework. Edit: We use templates in html and at run time, this templating engine replaces the html macros but parcel is attempting to resolve these at build time thus throwing the error. @DeMoorJasper |
Being more specific or opening up an issue dedicated to your issue would be more helpfull @raymondborkowski |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. |
Choose one: is this a 🐛 bug report or 🙋 feature request?
bug report
🤔 Expected Behavior
don't attempt to resolve
href
assets.😯 Current Behavior
the following code in and html file fails the build:
<a href="{{ $ctrl.bioProjectLink }}" target="_blank">
error:
Cannot resolve dependency './%7B%7B%20$ctrl.bioProjectLink%20%7D%7D'
🌍 Your Environment
The text was updated successfully, but these errors were encountered: