create-react-app

React. Error when importing an object (Attempted import error)

Standard scheme: there are several files with constant objects in the same folder, sent for export to index.js for further ge ... s used in other projects, but relative paths were used there. Maybe because of this, webpack can't build the files correctly?

How to configure CSS module in webpack without create-react-app?

In the base assembly create-react-app, you can encapsulate CSS by adding .module. Plus, after the build, the BEM methodology is applied to them, what modules or other things are needed for this in webpack?

When creating a new project, react creates npm files when using yarn

Such a problem. When creating a new react project, I use yarn . But it creates files and npm . How do I fix this ?

How to correctly specify docker-compose volume for create-react-app so that the local folder and the folder from the image are synchronized

The folder structure looks like this: Dockerfile for backend: FROM python:3.8 ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUF ... build The build folder appears in the container, but not on the locale. Tell me how to implement this correctly, thank you!

Is it possible to import scss mixins globally in create react app?

Please tell me, is it possible to somehow globally import a library with mixins or variables into the create react app applic ... m? I would like to specify once what you need to import and just use the mixins in those css modules where it is necessary.

Correct import / export React

Tell me how to properly export and import multiple const. File const.js const activeTabs = { /*code*/ } const ... s a file App.js import activeTabs from './const'; import myContent from './const'; Returns errors or works but empty const