Skip to content
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

css bundled (Failed loading required CSS file) #220

Closed
flieks opened this issue May 7, 2016 · 9 comments
Closed

css bundled (Failed loading required CSS file) #220

flieks opened this issue May 7, 2016 · 9 comments
Assignees

Comments

@flieks
Copy link

flieks commented May 7, 2016

Hi,

I get this when i bundle my css (fixUpCSSUrls):
image
the css string is in the "default" property.

maybe it has to do with this
#189

I'm also getting runtime errors for bundling html:
Error: Template markup must be wrapped in a <template> element e.g. <template> <!-- markup here --> </template> at Object.createTemplateFromMarkup (http://localhost:9000/dist/aurelia.js:10292:15) at eval (http://localhost:9000/dist/aurelia.js:12662:42) Error loading http://localhost:9000/dist/common/contact/index.html!template-registry-entry

I didn't really changed the gulp bundling code.

@ma3yta
Copy link

ma3yta commented May 29, 2016

I have the same issue with loading resources registered by config.globalResources https://gyazo.com/ef5c5cd64d4b3a59f2b3a6910aa35204 after bundling

@ma3yta
Copy link

ma3yta commented Jun 3, 2016

When It will be fixed?

@EisenbergEffect
Copy link
Contributor

We haven't seen these errors anywhere. We would need a repro to track it down.

@ma3yta
Copy link

ma3yta commented Jun 4, 2016

@EisenbergEffect
Copy link
Contributor

@ahmedshuhel Is it possible that the text plugin has changed the way it exports text resources?

@MisterGoodcat
Copy link

Rob, I also ran into these issues when I followed the simple bundling samples in Aurelia's documentation, and can confirm it's related to the text plugin. Installing 0.0.8 breaks bundling, downgrading to 0.0.3 (as used in the samples) fixes the issue.

@EisenbergEffect EisenbergEffect self-assigned this Jun 5, 2016
@ma3yta
Copy link

ma3yta commented Jun 7, 2016

@EisenbergEffect @Cedware described where is a problem here aurelia/templating#362 (comment)

@EisenbergEffect
Copy link
Contributor

Check master of loader-default and let me know if this resolves the issue. Based on examining the source of multiple different loader text plugins and versions, I think this should handle the differing approaches.

@JayDi85
Copy link

JayDi85 commented Oct 4, 2016

Firefox console show: "TypeError: plugin.load is not a function" when aurelia attempt load css-resources (that's why error "Failed loading required CSS file" raise).

After some research I found that SO post about that error.

Author found solution in comments to first post:
28 Jul, to dynamically require text requires setting stub:false in the text plugin at aurelia.json > build.loader.plugins.

After change stub value to false in aurelia.json -- work fine for me. Bug is gone and app work correct.

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

No branches or pull requests

5 participants