Comments (5)
Hi @CESARDELATORRE
This is an issue about your configuration.
You need to be sure that VS2017 is using the same nodejs that you are using from command line.
Go to "Tools -> Options -> Project and Solutions -> Web Package Management -> External Web Tools" and ensure that the nodejs you use from command line is listed before that the entry "$(VSINSTALLDIR)\Web\External"
This should solve the issue.
Please, keep in mind that the version bundled with VS2017 (5.x) is far more modern than the obsolete version shipped with VS2015, so maybe you are using the bundled version of VS without errors. But, then, as the architecture is not the same (VS is still a 32 bit process) all binary modules will not work when you use the command line (this is a limitation of node, only one architecture of the binary modules can be kept at same time). So, when you use node from command line, as your architecture is different (x64) the error is triggered.
Please, review and close the issue if solved :)
from eshoponcontainers.
Eduard, this is how I have it configured.
Do you mean the line ".\node_modules.bin" which is already listed before the entry "$(VSINSTALLDIR)\Web\External", or do you mean that I need to add a new entry like the following
?
from eshoponcontainers.
Hi!
Yes, you need to add a new entry like the second picture, but in 2nd position.
The ideal is the 1st one to be:
.\node_modules\bin
And the 2nd entry
c:\program files\nodejs (or whatever path you have nodejs installed)
Then the rest of entries. That order ensures two things:
- Local node modules user over global ones (i. e. local gulp/bower used instead of global one) which is a preferred
- Forcing VS to use the same nodejs as used in the CLI.
This should solve your issues.
Thx!
from eshoponcontainers.
This issue was mainly solved by running npm rebuild node-sass after running npm install within the SPA folder by using the command line.
Closing the issue.
from eshoponcontainers.
not helping if we are building everything from cli-windows/start-windows-containers.ps1
from eshoponcontainers.
Related Issues (20)
- How to deploy all Microservices Docker images to Azure Container Registry using Azure Devops Pipeline HOT 2
- Node 12 warnings HOT 2
- CORS-related errors when loading SPA version of web app HOT 1
- Explicit reference to Duende.IdentityServer.EntityFramework.Storage not required HOT 2
- [Enhancement] Add extensions methods to dynamically add and subscribe to integration event handlers
- Connection refused for AKS deployment HOT 5
- [Question] A bicep-based Azure deployment option?
- Publish new release with working version for old sdks HOT 3
- Dubious and dangerous communication pattern for checkout
- How do I deploy the entire eShopOnContainers solution to Azure? HOT 2
- [Question] Refactor of Enumeration class to avoid using Reflection for .net 8 AoT
- domainEvents no elements?
- Inject Ordering Context rather than Unit Of Work in Transaction Behavior to create Transaction in Db HOT 2
- Broken link in 'Unit and integration testing' Wiki doc
- ./quickstart.sh does not exist - deployment steps not matching MSDN documentation HOT 1
- Running from Visual Studio ends with compilation error - Node.js requiered to build and run this project. HOT 1
- Error NETSDK1045 The current .NET SDK does not support targeting .NET 7.0.
- Download PDF links are broken HOT 2
- Any reason I cannot to connect to service and container? HOT 1
- Got 404 after deployed to AKS?
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 eshoponcontainers.