Comments (21)
You can probably simplify this by just deleting that folder and restarting visual studio.
I didn't change anything with the extraction process, so I'm really curious to find out what caused this for you; it appears like the extraction was aborted for some reason and afterwards, it saw the that the directory was there and skipped the extraction; I'll do some testing to see if there's an efficient way to verify that directory when the extension initializes.
from webcompiler.
@szalapski @cklenk @mucahitbugday Let me know if this issue occurs when upgrading to 1.14.10
from webcompiler.
Is it giving you an error message? Would you be able to provide a sample application that I can test? I tested a few js issues before release and they all worked as expected.
from webcompiler.
I just tried to create a new project in the project. not working in my old project.
Could the problem be in my project?
the project is a group project, the other group members have version 1.14.8 installed and there is no problem with them.
from webcompiler.
Without an error message, reproduction steps, or a sample project to test, it's going to be very difficult to identify the issue; Can you provide any more details on what is happening?
from webcompiler.
I'm getting the following:
Severity Code Description Project File Line Suppression State
Error node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module 'C:\Users\myself\AppData\Local\Temp\WebCompiler1.14.9.2\node_modules\sass\sass.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
MyBlazorApp.Client C:\...\Client\Styles\app.scss 0
Indeed, that folder exists but there is no sass.js in it.
How can I revert to an older version? Can you put VSIX files somewhere for us?
EDIT: The older version worked. First in Options > Environment > Extensions, disable "automaticaly update extensions" (see image), then uninstall the extension, close visual studio, then install this. https://marketplace.visualstudio.com/_apis/public/gallery/publishers/Failwyn/vsextensions/WebCompiler64/1.14.8/vspackage
from webcompiler.
Can you try uninstalling and reinstalling the extension, It looks like it couldn’t extract the node modules; possibly a permission issue?
from webcompiler.
from webcompiler.
Can you zip the C:\Users\myself\AppData\Local\Temp\WebCompiler1.14.9.2\node_modules\ directory and send it to me?
from webcompiler.
Here you go.
node_modules.zip
from webcompiler.
Your node_modules folder has all of the directories, but none of the files, there has to be something on your machine preventing the 7z file from being extracted properly.
Is there anything in log.text in the C:\Users\myself\AppData\Local\Temp\WebCompiler1.14.9.2 directory?
Can you this?
- Uninstall the WebCompiler extension
- Close Visual Studio
- Clear your Temp Files (specifically delete the C:\Users\myself\AppData\Local\Temp\WebCompiler1.14.9.2 directory)
- Open Visual Studio
- Install the Extension
- Check the node_modules folder for the node_modules\sass\sass.js file at C:\Users\myself\AppData\Local\Temp\WebCompiler1.14.9.2
from webcompiler.
log.txt has just "Friday, December 2, 2022"
FYI Some of the folders have files: for example, amdefine\ contains amdefine.js and LICENSE.
I'll try these steps. (By the way, 1.14.8 works great.)
from webcompiler.
Did those stepe, and still, sass.js
was not in node_modules\sass
before starting Visual Studio, but after I start it and compile an scss, everything works. I guess I'll tell my team to go through all these steps--I hope they try. I think the actual steps would be
- In Extensions => Manage Extensions, uninstall the WebCompiler extension (won't uninstall till close)
- Close Visual Studio (thus running the unintsaller)
- Delete the C:\Users*YOURID*\AppData\Local\Temp\WebCompiler* folders
- Open Visual Studio, Install the Extension, restart Visual Studio and let it install.
- Open a solution that has a compilerconfig.json, then save a change to an .scss file. There will be a long delay while files are added, but it should work. Then it should be fast after that.
I have Visual Studio Pro 2022 17.4.0 with the .NET SDK 7.0.100.
from webcompiler.
Delete node_modules, or also everything including the WebCompiler1.* folder itself?
from webcompiler.
Try just deleting the node_modules folder first.
from webcompiler.
I was getting babel.cmd is not recognized as an internal or external command, operable program or batch file errors. I deleted the WebCompiler temp folders and then was able to recompile all my js and scss. I was on VS 2022 17.4.3 Win 11 22H2.
from webcompiler.
Try just deleting the node_modules folder first.
That worked.
from webcompiler.
I wonder if this had something to do with modifying the revision number instead of incrementing the build version? Next release I’ll go back to keeping the revision 0 to see if that helps; I’m just waiting for a new release of NUglify to fix the ‘none’ optimization.
from webcompiler.
It worked no problem with 1.14.10. Maybe avoid the fourth part of the version number?
from webcompiler.
Interesting; I wonder if this was connected to having the revision number?
from webcompiler.
I had this :
Severity Code Description Project File Line Suppression State
Error C:\Users\egagnon\AppData\Local\Temp\WebCompiler1.14.10\node_modules\sass\sass.dart.js:1
SyntaxError: Invalid or unexpected token
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1031:15)
at Module._compile (node:internal/modules/cjs/loader:1065:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)
at Object. (C:\Users\egagnon\AppData\Local\Temp\WebCompiler1.14.10\node_modules\sass\sass.js:3:15)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
WMS-Octopus-V2 C:\Users\egagnon\source\repos\b1wms\WMS-Octopus-V2\WMS-Octopus-V2\Shared\WmsTextTable.razor.scss 0
and szalapski instruction fix my issue thanx man !!
#63 (comment)
from webcompiler.
Related Issues (20)
- Version 14.9.2 changes "0 none" to "0 0" during minification HOT 9
- Files appear to have changes, although no visible changes are seen + Compile on save. HOT 10
- Relative Path for Imported SCSS not Compiling to Proper Path HOT 3
- cant work in linux HOT 3
- "math" option in compilerconfig defaults not working HOT 12
- Problem with compiling HOT 18
- VS Gallery link pointing at old version HOT 2
- Context menus not displaying HOT 2
- Resulting CSS file only contains comments from @use dependencies HOT 1
- Feature: Group media queries HOT 1
- Issue compiling partial .scss files in folders HOT 1
- Extention is not correct working with @container instead @media
- Not working on Visual Studio Mac HOT 4
- Validation warning shown for valid css, how to turn this off ? HOT 1
- sass.cmd is not recognized as an internal or external command HOT 5
- Sourcemap in css has an absolute path HOT 1
- node-sass is now deprecated HOT 3
- Question: Looking for guidance using compiler/bundler with Razor Class Library (RCL) projects HOT 1
- Cannot compile SCSS with symlink'd or shorcut'd references HOT 1
- SCSS unit tests failing due to error in node package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webcompiler.