how to read n rewrite package.json re: react-scripts
here is the package.json.
I need to upgrade it to react-scripts 5.0.0 but I don see
react-scripts
, where is it? how I can add this.
I am doing this bc failed to fetch data from strapi using axios due to err process not defined
according to solutions here :https://stackoverflow.com/questions/70368760/react-uncaught-referenceerror-process-is-not-defined
Stack Overflow
React Uncaught ReferenceError: process is not defined
I am getting issues with iframe.
Till today everything was working as expected. Today I added a very simple Modal component and somehow iframe started appearing. It appears when I am editing the fi...
2 Replies
I don't think you need to do that. From your
package.json
, I see that you started your project from a Vite template. Vite does not use react-scripts
, that library was mainly used by Create React App.
As your getting issues with axios and Strapi, can you share the errors related? If you can reproduce it in Codepen or Codesandbox, that would be great.hi thanks for your reply. I am working with this tutorial and met this error. feel free to check it out. https://discord.com/channels/436251713830125568/1119649265787084831/1119649265787084831