So I’ve started building a portfolio site for myself, gone with Astro as it’s now the cool new thing, so thought why not, was going to use Gatsby but this seems like the more performant solution and you have a lot of freedom with it (not tied in to a GQL CMS). As I understand it, Astro is a solution
Tag: npm
Getting this error while using javascript with html “Uncaught SyntaxError: Cannot use import statement outside a module (at random.js:1:1)”
Hello everyone I am a beginer in web development. I am making a project where in I need to use a npm package npm i link-preview-js in javascript file with html file and run it in browser random.js file html file I am getting an error Uncaught SyntaxError: Cannot use import statement outside a module (at random.js:1:1) I know i
How to get retrieve twitter user id from twitter handle using the twitter v2 API
I am currently using the twitter v2 API, using the following npm package link I require the userID and not the twitter handle for this command. How would I be able to get the twitter user id from the twitter handle using the twitter API? Answer You would use client.v2.userByUsername(‘handle’); and get the ID value from the response.
heroku build failed on deployment
I am trying to host my React application on heroku but I keep getting the following errors: I have tried to do both –legacy-peer-deps and npm install –force but my build keeps getting failed. Is there a way to fix this recurrent problem. Answer I had to update the peer dependency for credit-card-input library in the package-lock.json file to be
Node js Engine not upgrading for firebase function node compatibility
First failed Here is the package.json Error: package.json in functions directory has an engines field which is unsupported. Valid choices are: {“node”: 10|12|14|16} Deploys to runtimes below Node.js 10 are now disabled in the Firebase CLI. Existing Node.js 8 functions will stop executing at a future date. Update existing functions to Node.js 10 or greater as soon as possible. I
i am just trying to install the package of react js but i am getting errors
I am just trying to install react but I am getting errors. I have installed npm -v 8.12.1 version in my system. I have tried to downgrade react but it doesn’t help I have tried these type: update npm npm install npm -g downgraded react to “react”: “15.3.0” cleared cache: npm cache clear removed node_modules, rm -rf node_modules, reinstalled node_modules,
Vulnerability in NestJS 8.4.5
Recently, when I run npm audit in my npm package, I receive the following error: The problem seems to be in the dicer package which is a very popular package used by NestJS. I searched the web for possible solutions but can’t find any fixes. Has anyone been able to fix this yet? Thanks in advance. Answer It seems that
Angular – Generate thumbnails for uploaded image/video
I have an Angular application where a user can upload files. I want to generate a thumbnail image for files that are images/videos. Basically, all I have is the file bytes and type, I do not save the file in the app, I just forward it to another API. I don’t want to save the generated thumbnail locally, I just
My Javascript file won’t run because of bigint error
I am trying to use @metaplex/js to do some NFT minting. Usually my .js files work properly but when I run the file this error comes up. bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?) I don’t really get what that means. So, I tried to run npm run rebuild but rebuild is said
Tailwind default color classes not working
I’m building a React application using Tailwind CSS Framework. I have used NPM to install tailwind in my react app in the following manner: Then I have also edited my tailwind.config.js file in the following manner: And updated my index.css file in the following manner: Then I tried to use default color classes that tailwind CSS provides in the following