menu
Channels
Team
Posts
Members
Info

How to lint the code?

I've a sample app created by create-react-app. On package.json "eslintConfig": { "extends": "react-app" }, How to lint the code like "eslint src/**/*.js", should I install eslint by myself, cause its already dependencies by itselft (eslint-config-react-app) or can we make like…

thumbsup
0
message-simple
1

How to see css file name in devtool without eject?

I have app created with react-create-app. Now I want to see exact file name in my chrome dev tool, but inessed of name e.g App.js I see useless <style></style>. So seems source map doesn't work or isn't enable in webpack by default. 1 or 2 years ago I fixed that by ejection. But…

thumbsup
0
message-simple
0

Proxying websocket connections not working

I have followed the instructions at https://create-react-app.dev/docs/proxying-api-requests-in-development/#configuring-the-proxy-manually on how to create more than one proxied urls, and have the following: app.use('/api', proxy({ target: 'http://localhost:4435', changeOrigin:…

thumbsup
0
message-simple
0

ESlint complain about using 'import type' with CRA Typescript

I'm setting up ReactJS with TS and I'm just exporting the type and import it using import type but ESlint complain about it. Does anyone know how to fix it?

thumbsup
0
message-simple
2

Need help tracing where in CRA error comes from

I'm using CRA's TypeScript template to test Yarn v2 workspace's integration with TypeScript and ran into a problem just getting it to run and I'm working with the Yarn team to try to figure out what's going wrong.. This is the repro repo and the steps to trigger the error are in…

thumbsup
0
message-simple
0

PostCSS plugins support

Hi @iansu, do you have any idea to add PostCSS plugins support to create react app? because I love to use https://tailwindcss.com/ with create react app without ejecting

thumbsup
1
message-simple
3

How to import a CRA app as a node.js package?

I wonder why it's not possible to easily use a CRA app as a npm package. I understand that create-react-app is meant to build "apps", not "packages". But is it really out of the scope? I've created a CRA app, and now I'd like to use it both as an app (using a div and loading the…

thumbsup
0
message-simple
10

Import SVG error

After upgrading to react 16.12.0 and react-scripts 3.3.0. My svg import got the error: But it's working just fine in react 16.8.6 and react-scripts 3.0.1. The svg content is like this: …

thumbsup
0
message-simple
3

How to run tests for a new project?

Hi There !! I started a new project with this command with node 12.14.1: npx create-react-app my-app …

thumbsup
0
message-simple
8

Has anybody worked with background sync in CRA? I'm having a difficult time…

thumbsup
0
message-simple
1