Skip to content

Module parse failed: Unexpected token  #1931

@kukovisuals

Description

@kukovisuals

What version of React, ReactDOM/React Native, Redux, and React Redux are you using?

  • node -v = v17.4.0
  • React: 18.0.15
  • ReactDOM/React Native: 18.0.6
  • @reduxjs/toolkit: "^1.8.3",
  • Redux: 4.2.0
  • React Redux: 8.0.2

What is the current behavior?

Module parse failed: Unexpected token (10:12)
File was processed with these loaders:

  • ./node_modules/ts-loader/index.js
    You may need an additional loader to handle the result of these loaders.

image

What is the expected behavior?

The reason of not doing build: react-scripts-build is because in AWS linux server freezes on npm run build I'm trying to setup webpack.config to make it faster.

I'm sure this is something simple idk where to post this, I have 2 months experience with typescript. Idk if is the tsconfig.json or webpack.config

npm start works fine

image

image

image

image

Which browser and OS are affected by this issue?

windows 11 AMD razer

Did this work in previous versions of React Redux?

  • Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions