Coder Social home page Coder Social logo

rbiedrawa / react-redux-rtk-saga-mui-typescript-starter Goto Github PK

View Code? Open in Web Editor NEW
29.0 1.0 17.0 4.07 MB

A boilerplate Create React App with Typescript, Redux Toolkit, Redux Saga, React Hook Form, Cypress, Storybook, React-i18next and Material UI๐Ÿ‘จโ€๐Ÿ’ป

License: MIT License

HTML 1.31% TypeScript 74.16% Shell 0.43% JavaScript 24.11%
reactjs react typescript material-ui redux redux-saga redux-toolkit react-router react-hook-form yup jest react-testing-library cypress storybook mock-service-worker eslint husky commitlint prettier react-i18next

react-redux-rtk-saga-mui-typescript-starter's Issues

Error after clone & start

Hi,
Here what i did:

git clone ...,
npm i,
npm run start

Result:

Failed to compile.

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './runtime.js' is not defined by "exports" in /home/user/Documents/progs/react_boiler/react-redux-rtk-saga-mui-typescript-starter/node_modules/react-refresh/package.json
asset static/js/bundle.js 313 KiB [emitted] (name: main) 1 related asset
asset index.html 658 bytes [emitted]
asset asset-manifest.json 190 bytes [emitted]
runtime modules 28.2 KiB 13 modules
modules by path ./node_modules/core-js-pure/ 24.8 KiB 53 modules
modules by path ./node_modules/webpack-dev-server/client/ 62.1 KiB 12 modules
modules by path ./node_modules/webpack/hot/*.js 4.4 KiB
./node_modules/webpack/hot/dev-server.js 1.63 KiB [built] [code generated]
./node_modules/webpack/hot/log.js 1.37 KiB [built] [code generated]

  • 2 modules
    modules by path ./node_modules/html-entities/lib/*.js 115 KiB
    ./node_modules/html-entities/lib/index.js 6.83 KiB [built] [code generated]
    ./node_modules/html-entities/lib/named-references.js 107 KiB [built] [code generated]
  • 2 modules
    ./node_modules/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js 849 bytes [built] [code generated]
    ./src/index.tsx 39 bytes [not cacheable] [built] [code generated] [1 error]
    ./node_modules/ansi-html-community/index.js 4.26 KiB [built] [code generated]
    ./node_modules/events/events.js 14 KiB [built] [code generated]

ERROR in ./src/index.tsx
Module build failed (from ./node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js):
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './runtime.js' is not defined by "exports" in /home/user/Documents/progs/react_boiler/react-redux-rtk-saga-mui-typescript-starter/node_modules/react-refresh/package.json
at new NodeError (node:internal/errors:371:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:440:9)
at packageExportsResolve (node:internal/modules/esm/resolve:692:3)
at resolveExports (node:internal/modules/cjs/loader:482:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
at Function.resolve (node:internal/modules/cjs/helpers:108:19)
at Object. (/home/user/Documents/progs/react_boiler/react-redux-rtk-saga-mui-typescript-starter/node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js:20:4)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)

ERROR in ./node_modules/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js 4:23-58
Module not found: Error: Package path ./runtime.js is not exported from package /home/user/Documents/progs/react_boiler/react-redux-rtk-saga-mui-typescript-starter/node_modules/react-refresh (see exports field in /home/user/Documents/progs/react_boiler/react-redux-rtk-saga-mui-typescript-starter/node_modules/react-refresh/package.json)

webpack 5.70.0 compiled with 2 errors in 11334 ms

"No files matching the pattern" error on initial windows checkin

If you create a repo from this code on the initial checkin under windows you get an error about this line:

"lint:css": "stylelint './src/**/*.{jsx,js,tsx,ts}'",

If you get it to eventually do the initial check in, you can undo whatever hacks you had to do to get it to checkin and future checkins seem OK... googling seems to indicate this is a windows only issue related to the single quotes. Removing them gets rid of the error. Updating the packages may help too seems like there were some bugfixes related to this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.