Less Import Error During Deploy
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";
https://github.com/Nemo64/meteor-bootstrap/issues/64 pointed me in the right direction for the fix.
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.
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!