advanced-css-course
advanced-css-course copied to clipboard
Using node-sass in vscode
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" }
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."
Just use sass file compiler extension, it's easier to configure and no headache whatsoever.
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?