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

NPM Run Watch error - no CSS complied #410

Open
johnw6761 opened this issue Nov 11, 2019 · 4 comments
Open

NPM Run Watch error - no CSS complied #410

johnw6761 opened this issue Nov 11, 2019 · 4 comments

Comments

@johnw6761
Copy link

I have one repo where my SCSS folder doesnt not appear to be being watched. After making changes and saving files no CSS files are complied. Command line doesnt show any errors and just stays on 'Starting watch' message.

@johnw6761
Copy link
Author

This issue is on version 5.0

@johnw6761 johnw6761 changed the title SCSS folder not being watched - no CSS complied NPM Run Watch error - no CSS complied Nov 11, 2019
@anaelleltd
Copy link

I am having the same issue.

@johnw6761
Copy link
Author

@anaelleltd try :

  1. deleting node modules folder
  2. then in package.json change line 27 to "gulp-sass": "3.0.0"
  3. then re run npm install

@anaelleltd
Copy link

Thanks johnw6761! I just saw your message.

This is what I did to get it working:

  1. manually delete the node modules folder from the theme folder.
  2. run the CLI and enter npm install node-sass --force (this forces the installation of node-sass)
  3. enter npm install (this installs the remaining node module files)
  4. enter npm rebuild (this patches all installations together)
  5. enter npm uninstall (I believe this cleared the cache??)
  6. enter npm install-test (this attempts to run the build and displays error with .scss or .js files)
    Basically, at this point, the npm build is working without throwing a "missing gulp sass" error.
  7. enter npm run build
  8. refresh browser to see updates/changes

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

2 participants