Dependency error during storefront setup for default application - spartacus-storefront

I am getting the following error while running the server (ng serve) while setting up the spartacus storefront.
#spartacus/core/spartacus-core"' has no exported member 'CartService'. Did you mean 'AuthService'?

Got the issue solved by updating the dependencies and running npm audit fix on the application.

Related

Vue Project not working after ubuntu customization

I have created a project using vue.js at the frontend and flask at the backend, It was working perfectly. But, after I customized my ubuntu OS, suddenly I am unable to run the project, my flask and every other framework and library was uninstalled and I am unable to reinstall vue and I get this error message when I try to install vue again:
Can someone tell me how to resolve this issue?
By Customization, I installed some extensions and then some wallpapers, icon packs etc..
As a user has mentioned in the replies earlier, what you are trying to do is installing a global package, and the error displayed there clearly stated that you lacked permissions, and the customizations you mentioned should not have any impact on this.
Since you are using Ubuntu, just add a sudo in front of the command that you are trying to execute and it should be fixed.

Vercel Deployment: Internal Server Error when updating NPM Packages

I'm currently working on a NUXT 2.x App and I'm hosting the dev Project on Vercel. Now since the NPM packages are outdated and I want to remove some of the packages, the Deployed Version on Vercel throws an empty page with 500 error. If i stash the changes in package.json, everything works fine on the deployed version.
How can I update / remove NPM packages from my current Version and deploy it on Vercel?
Apparently, I had to downgrade the Firebase Version from 9.5 to 9.1, then it deployed just fine on Vercel.
I do recommend the usage of yarn upgrade-interactive --latest to get a list of all the package and the possible updates.
If you want to remove a specific one, go for yarn remove my-not-so-cool-package.
Think about bumping your Node.js version to 14 and try to build locally before pushing to Vercel.
Then, it comes down to reading out the differences that you may have between the versions of the packages and fix the breaking changes if any.
Can't help more without more info from your part.

GatsbyJS - Can't resolve 'babel-runtime/helpers/possibleConstructorReturn'

I have a website that has been running fine for the last 4 months. Randomly the site stopped deploying on Netlify and I keep getting this error:
Generating development JavaScript bundle failed
Can't resolve 'babel-runtime/helpers/possibleConstructorReturn' in
'D:\Websites\nemesis-cheer\node_modules\react-script-tag\lib'
I have tried reinstalling babel, tried downgrading to different versions of babel/runtime, tried clearing cache and redeploying, Even tried reverting to old versions of the repo that I know for a fact deploy successfully and they still failed.
Here is my deploy log:
https://pastebin.com/raw/dH45EtP5
The repo is:
https://github.com/mont266/nemesis-cheerleading
Im really stomped here if anyone could help me out I would really appreciate it.
Try upgrading your babel/core dependency.
Now you have it locked to 7.13.8 (according to your package-lock.json), and it seems that the missing helpers are fixed in the 7.5.5, according to this stack trace.
I fixed the issue by reinstalling yarn and doing 'yarn add babel-runtime'. Must've gotten rid of the entire plugin at somepoint by accident.
I suggest you to try adding "babel-runtime": "6.26.0" to your package.json
Maybe it would fix an error for you

The current npm install location C:\Users\{username}\AppData\Roaming\npm requires admin privileges to install a package

I am creating cordova app using visual studio 2015, it was working fine till last month.
I have updated the node and npm by downloading it from website.
now when i try to build the app it is giving me below error message.
I have tried whatever i can, but not able to fix the issue.
kindly help me to fix this as it is causing delay in my project delivery.
Error message:
Severity Code Description Project File Line Suppression State
Error
The current npm install location C:\Users{user}\AppData\Roaming\npm requires admin privileges to install a package. To resolve the issue, either change the ACL for C:\Users{user}\AppData\Roaming\npm or change the install path by running 'npm config set prefix %AppData%\npm' and restarting Visual Studio in order to build without being an admin. eInspection D:\eInspectionBuild\eInspection\eInspection\RUNMDAINSTALL 1
1) I have tried changing node js location into tools-->option-->external web tool
2) also tried reinstalling vs

Bigcommerce Stencil error

I am using bigcommerce stencil and have started working on it. But today I got this error:
{"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred"}.
Can any body help me why I am getting this error?
Hope this answer would help.
If you have selected Blueprint theme at Store SetUp --> Design and running Stencil locally. It will throw 500 error.
Try to select any stencil free theme at Store Setup --> Design. And then run the command(stencil start).
It will Work. :)
Try running npm install in the console from your project directory once before running stencil start to make sure you have the latest versions of all packages. I've run into this issue in the past when my files get out of sync from working from two computers. This may fix it for you.