Git Product home page Git Product logo

Comments (21)

failwyn avatar failwyn commented on August 17, 2024 1

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.

failwyn avatar failwyn commented on August 17, 2024 1

@szalapski @cklenk @mucahitbugday Let me know if this issue occurs when upgrading to 1.14.10

from webcompiler.

failwyn avatar failwyn commented on August 17, 2024

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.

mucahitbugday avatar mucahitbugday commented on August 17, 2024

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.

failwyn avatar failwyn commented on August 17, 2024

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.

szalapski avatar szalapski commented on August 17, 2024

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.

failwyn avatar failwyn commented on August 17, 2024

Can you try uninstalling and reinstalling the extension, It looks like it couldn’t extract the node modules; possibly a permission issue?

from webcompiler.

szalapski avatar szalapski commented on August 17, 2024

from webcompiler.

failwyn avatar failwyn commented on August 17, 2024

Can you zip the C:\Users\myself\AppData\Local\Temp\WebCompiler1.14.9.2\node_modules\ directory and send it to me?

from webcompiler.

szalapski avatar szalapski commented on August 17, 2024

Here you go.
node_modules.zip

from webcompiler.

failwyn avatar failwyn commented on August 17, 2024

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?

  1. Uninstall the WebCompiler extension
  2. Close Visual Studio
  3. Clear your Temp Files (specifically delete the C:\Users\myself\AppData\Local\Temp\WebCompiler1.14.9.2 directory)
  4. Open Visual Studio
  5. Install the Extension
  6. 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.

szalapski avatar szalapski commented on August 17, 2024

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.

szalapski avatar szalapski commented on August 17, 2024

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

  1. In Extensions => Manage Extensions, uninstall the WebCompiler extension (won't uninstall till close)
  2. Close Visual Studio (thus running the unintsaller)
  3. Delete the C:\Users*YOURID*\AppData\Local\Temp\WebCompiler* folders
  4. Open Visual Studio, Install the Extension, restart Visual Studio and let it install.
  5. 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.

szalapski avatar szalapski commented on August 17, 2024

Delete node_modules, or also everything including the WebCompiler1.* folder itself?

from webcompiler.

failwyn avatar failwyn commented on August 17, 2024

Try just deleting the node_modules folder first.

from webcompiler.

cklenk avatar cklenk commented on August 17, 2024

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.

szalapski avatar szalapski commented on August 17, 2024

Try just deleting the node_modules folder first.

That worked.

from webcompiler.

failwyn avatar failwyn commented on August 17, 2024

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.

szalapski avatar szalapski commented on August 17, 2024

It worked no problem with 1.14.10. Maybe avoid the fourth part of the version number?

from webcompiler.

failwyn avatar failwyn commented on August 17, 2024

Interesting; I wonder if this was connected to having the revision number?

from webcompiler.

paradoxall avatar paradoxall commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.