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

Using node-sass in vscode #41

Open
Facefall opened this issue Apr 20, 2020 · 3 comments
Open

Using node-sass in vscode #41

Facefall opened this issue Apr 20, 2020 · 3 comments

Comments

@Facefall
Copy link

node-sass version: 4.9

when i installed and ran node-sass in vscode, terminal said that
{ "status": 3, "message": "File to read not found or unreadable: E:/learn/react-app1/src/index.scss", "formatted": "Internal Error: File to read not found or unreadable: E:/learn/react-app1/src/index.scss\n" }

@Facefall
Copy link
Author

Facefall commented Apr 20, 2020

solving method:
replace the file node_modules/node-sass/lib/render.js with render.js
(https://github.com/marcosbozzani/node-sass/edit/bug-vscode-watch/lib/render.js)

This is not node-sass problem , because vscode locks the file and makes it inaccessible.

marcosbozzani "The problem seems to be VSCode is still holding the file while node-sass try to access it."

@FatTonyy
Copy link

Just use sass file compiler extension, it's easier to configure and no headache whatsoever.

@turkishkitten
Copy link

Hey FatTonny I am having a problem with course 73 and it may be the same issue as above but if I use the sass file compiler extenstion how do I list the package.json file?

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