advanced-css-course icon indicating copy to clipboard operation
advanced-css-course copied to clipboard

Using node-sass in vscode

Open Facefall opened this issue 4 years ago • 3 comments

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 avatar Apr 20 '20 13:04 Facefall

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."

Facefall avatar Apr 20 '20 13:04 Facefall

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

FatTonyy avatar Apr 21 '20 22:04 FatTonyy

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?

turkishkitten avatar Jan 28 '21 18:01 turkishkitten