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

compile.js fails if public/resources & resources/js is empty #214

Open
jpw opened this issue Sep 14, 2017 · 5 comments
Open

compile.js fails if public/resources & resources/js is empty #214

jpw opened this issue Sep 14, 2017 · 5 comments

Comments

@jpw
Copy link
Contributor

jpw commented Sep 14, 2017

compile.js fails if public/resources & resources/js is empty.

All the user gets is an unhelpful Caught exception: TypeError: Cannot convert undefined or null to object with no line number.

I hit this setting up a new project without doing the Getting Started Guide first, and running compile for the first time...

@jpw jpw changed the title compile.js fails if public/resources && resources/js is empty compile.js fails if public/resources & resources/js is empty Sep 14, 2017
@mattrayner
Copy link

Hey @jpw, if I want to have an empty public/resources and resources/js because all our assets are coming from a module, what should I do?

@mattrayner
Copy link

I must be missing something, but I can't get it to process any resources from my module

@mattrayner
Copy link

This is the current project I'm trying to get working for production:
https://github.com/ukparliament/augustus

@mattrayner
Copy link

I worked it out - I had to run:

./node_modules/.bin/shunter-build -r pugin-components

Is this documented somewhere that I missed?

@jpw jpw self-assigned this Sep 3, 2018
@jpw
Copy link
Contributor Author

jpw commented Sep 3, 2018

Is this documented somewhere that I missed?

I don't think so, the only relevant docu I think is over here

What is also not clear is, if you are not using Shunter's built-in asset handling at all, one does not need to run shunter-build/compile as this only compiles assets, not templates.

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

No branches or pull requests

2 participants