Questions tagged [cra]

38 questions
0
votes
1 answer

Can not resolve project name while creating react app

I am attempting to install React with Typescript, but I keep getting a weird error. Please note myprojectname is the root repository directory that I am installing the React app into. For some reason it is trying to resolve…
Luke Martin
  • 109
  • 7
0
votes
1 answer

my eslint-plugin-react-hooks doesn't work

module.exports = { env: { browser: true, es6: true, node: true, }, extends: ['airbnb', 'prettier', 'eslint:recommended', 'plugin:prettier/recommended'], // prettier/react 추가 parser: 'babel-eslint', parserOptions: { …
0
votes
1 answer

Failed to Compile Error on npm run start - CRA - Need a solution without reinstalling NODE

I have a project bootstrapped using Create React App (CRA) with templates provided by ReactStrap Library. The trouble is in my windows system with the exact same node version npm run start works well but on my Macbook pro it failed with error: See…
0
votes
0 answers

ghpages didnt show app created with cra with typescript

i create app with command npx create-react-app my-app --template typescript. Then i made all steps to add it to gh pages - like usual - add homepage,scripts, deploy it etc. The only problem is that it didnt worked. It didnt work on my project so i…
0
votes
2 answers

I can't use yarn anymore for some reason, tried to use a CRA and get this error

I tried to reinstall node.js as some recommended but it didn't solve this problem Error: Cannot find module 'C:\Users\João\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js' at Function.Module._resolveFilename…
0
votes
0 answers

NextJS - Stop refreshing page after some path

I'm trying to combine NextJS with CRA and I would like to use the react router after some path in NextJS. For example: It's ok the refresh between these two pages: https://localhost:3000/page1 --> https://localhost:3000/page2 I don't want the…
Car Lautaro
  • 301
  • 1
  • 2
  • 8
0
votes
1 answer

How to create a static website generator in React

Tech stack - Node.js, MongoDB for the database, Strapi CMS for editing and API, React - my application. I have a database with a long list of entries and a ready-to-use application that allows users to read data from the database. I need to be able…
Artem
  • 1
  • 1
-1
votes
1 answer

webpack 4 and create-react-app csp and new Function

webpack 4 appears to be adding code like this into the bundle try { n = n || new Function("return this")(); } catch (e) { "object" == typeof window && (n = window); } We have strict security which means this will fail csp…
dagda1
  • 26,856
  • 59
  • 237
  • 450
1 2
3