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

Cannot load less or css files in production #42

Closed
phillipskevin opened this issue Jan 12, 2017 · 1 comment
Closed

Cannot load less or css files in production #42

phillipskevin opened this issue Jan 12, 2017 · 1 comment

Comments

@phillipskevin
Copy link
Contributor

I'm not positive that this is an autorender issue, but after generating an app with donejs@alpha and starting the app in production mode, I get this error:

done-serve starting on http://localhost:8080
Potentially unhandled rejection [6] TypeError: Error loading "alpha-test@0.0.0#styles.less!steal-less@1.1.0#less" at file:C:/Users/kphil/dev/alpha-test/src/styles.less
Error loading "alpha-test@0.0.0#styles.less!steal-less@1.1.0#less" from "alpha-test@0.0.0#index.stache!done-autorender@1.0.0-alpha.2#src/autorender" at file:C:/Users/kphil/dev/alpha-test/src/index.stache
Cannot read property 'forwardSlashMap' of undefined
    at Object.name (file:C:/Users/kphil/dev/alpha-test/dist/bundles/alpha-test/index.js:6:4751)
    at Loader.n (file:C:/Users/kphil/dev/alpha-test/dist/bundles/alpha-test/index.js:6:384)
    at r (file:C:/Users/kphil/dev/alpha-test/dist/bundles/alpha-test/index.js:6:3913)
    at file:C:/Users/kphil/dev/alpha-test/dist/bundles/alpha-test/index.js:6:3994
    at tryCatchReject (C:\Users\kphil\dev\alpha-test\node_modules\steal-es6-module-loader\dist\es6-module-loader.src.js:1183:30)
    at runContinuation1 (C:\Users\kphil\dev\alpha-test\node_modules\steal-es6-module-loader\dist\es6-module-loader.src.js:1142:4)
    at Rejected.when (C:\Users\kphil\dev\alpha-test\node_modules\steal-es6-module-loader\dist\es6-module-loader.src.js:963:4)
    at Pending.run (C:\Users\kphil\dev\alpha-test\node_modules\steal-es6-module-loader\dist\es6-module-loader.src.js:821:13)
    at Scheduler._drain (C:\Users\kphil\dev\alpha-test\node_modules\steal-es6-module-loader\dist\es6-module-loader.src.js:97:19)
    at Scheduler.drain (C:\Users\kphil\dev\alpha-test\node_modules\steal-es6-module-loader\dist\es6-module-loader.src.js:62:9)

This is what the bundles config looks like in index.js:

System.bundles = {"bundles/alpha-test/index.css!":["alpha-test@1.0.0#styles.less!steal-less@1.1.0#less"]};

Loading the production.html file works just fine.

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

1 participant