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

Less Import Error During Deploy #32

Open
chrishearn opened this issue Apr 11, 2018 · 2 comments
Open

Less Import Error During Deploy #32

chrishearn opened this issue Apr 11, 2018 · 2 comments

Comments

@chrishearn
Copy link

Firstly, thanks very much for your work on this project!

When running ‘npm run mup-deploy’ the following error was appearing during the app build/bundling part of the process:

Building App Bundle Locally
local:jobs: updating npm dependencies -- aws-sdk...
local:kadira-data: updating npm dependencies -- lru-cache...
Errors prevented bundling:
While processing files with less (for target web.browser):
client/0config/bootstrap/custom.bootstrap.import.less:6: Unknown import:
custom.bootstrap.mixins.import.less

I managed to fix the problem by editing the "/client/0config/bootstrap/custom.bootstrap.import.less" file and change this line:

@import "custom.bootstrap.mixins.import.less";

to

@import "{}/client/0config/bootstrap/custom.bootstrap.mixins.import.less";

Nemo64/meteor-bootstrap#64 pointed me in the right direction for the fix.

@lmachens
Copy link
Owner

If you run meteor before deploying, it should generate these files. I think we should add it to the docs or add these files to the repository.

@ivan046
Copy link

ivan046 commented Apr 11, 2018

If you run 'meteor build' , it gives:

Errors prevented bundling:                    
While processing files with less (for target web.browser):
client/0config/bootstrap/custom.bootstrap.import.less:6: 
Unknown import: custom.bootstrap.mixins.import.less

But running 'meteor build' again after that gives no errors
as compileLessBatch successfully creates needed files during first run, but meteor doesn't wait till they are generated, so build process throws error at first run and is finished successfully on second run.

if @import "{}/client/0config/bootstrap/custom.bootstrap.mixins.import.less"; and adding the file to repo can override it, that's great!

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

3 participants