-
Notifications
You must be signed in to change notification settings - Fork 433
Missing module after running brunch watch -s #1271
Comments
It doesn't mean it was "removed" from your config. It simply warns you that Brunch no longer uses this property so that you won't rely on it (its support was dropped back in 1.1; the warning was added in 2.3 because many people still had it in their configs) Not a big deal.
It is reporting an error that occurs when brunch is trying to The issue could be on your side. Perhaps you (or something else) have accidentally deleted that file from |
Thanks for your reply. I have deleted the package locally and checked-out another copy but now I am getting another error after running
It seems to fail here:
But does not give me any meanful information. Except the |
Just look at the error message itself
It's pretty descriptive. It's not a brunch issue, it's a CoffeeScript syntax error (you probably have a few Either way, since |
It does not make sense to me. I need to track the files of a particular extension in order to join them into another file. If I remove the
|
Because you also have several
Why do you need to care about extensions so much? Wouldn't this be an acceptable join config? stylesheets:
joinTo:
'stylesheets/app.css': [/^(app|vendor)(.+)\.(?!scss)/, /^app\/styles\/(.+)\.scss/]
'test/stylesheets/test.css': /^test/
'stylesheets/global.css': /^app\/sass\/config/
# moved all scss files to before
# using after was temperamental
order:
before: [
'app/styles/mixins.scss',
'app/styles/main.scss',
'app/styles/header.scss',
'app/styles/footer.scss',
'app/styles/articles.scss',
'app/styles/landing.scss',
'app/styles/search.scss',
'app/styles/gallery.scss',
'app/styles/video.scss',
'app/styles/quiz.scss',
'app/styles/explore.scss',
'app/styles/hover.scss',
'app/styles/ie.scss'
]
after: [
] where non-scss files from app and vendor plus scss files only from (note that the regexp might need some tweaking but you get the idea) If your scss and less styles all live under |
If it helps, here is my config file:
|
Ok, the good news is that it is now compiling but the actual project returns a blank page and gives me the following error in the console:
I believe the above not to be related to brunch unless it is how it exports the vendor.js file. the Thanks for your help. |
If you can't fix that issue and believe it is being caused by brunch, you can always share a small app that reproduces it so that we can take a look |
Thank you, I have been doing some research in the little time I have and it seems that it is indeed a brunch issue. It does not seem to be finding my templates and I wonder if it is caused by where I am compiling these in my brunch.coffee file:
I have only used Gulp.js before and brunch seems to be a bit opinionated. I have upgraded to version brunch - 2.6.1 (globally) but it is still not solving the problem. I am also getting an error (only shown in terminal, not console) but it is a
Type error which is not very clear. |
The config seems ok, nothing stands out that could be causing it... that said, the issue can be somewhere in your code or the plugins (or the versions of the plugins) Please provide a small app that demonstrates the issue to make it easier for me to help you. |
@goshakkk Can reproduce with the dead-simple-skeleton. Seems related to Linux and fs.write, see microsoft/vscode#4727 |
Okay, I've got what I think is the same problem: when my editor (NeoVim) is set to do non-atomic saves, simply writing onto the file, I get lots of messy problems with dependencies/etc. like @Itagiba described. The problem appears to go away when I switch to atomic writes (write elsewhere and copy) or by setting It seems like maybe this issue should go upstream to paulmillr/chokidar. |
I guess that us getting these issues more than Gulp/Webpack/etc means Brunch is fast enough the OS can't keep up. So yay Brunch! 😉 |
Description
Hello, I am having real issues with brunch at the moment. The error is not very consistent because it has not happened in 10hrs but it seems that sometimes when I run brunch watch -s I lose some of the configuration of the files and it throws these warnings followed by the following error below:
I have no idea why it suddenly loses the paths and ./lib/core.js module. I follow the instructions it gives me and reinstall brunch with
npm install
, do abrunch watch -s
again, it is also worth pointing that it labels brunch as extraneous (whatever that means)This still does not work. I then proceed in installing brunch globally
npm install brunch -g
. But I get the same error and instruction to do annpm install
again. I keep going around in circles with this. What on earth is happening?Environment
package.json
contentsbrunch config contents
Unfortunately I am unable to create a demo app but I hope that the information above gives you enough info.
The text was updated successfully, but these errors were encountered: