Q: Module parse failed: Unexpected token in a react with redux toolkit node module I'm trying to work out how to create a react + redux node module for my react + redux toolkit sites. I've got multiple sites with common components and I'd like to share them using a module.
I have managed to create, publish (using npm publish), and install my node module on to my site, but whenever I try and run with it installed I get the below error for any component I make in the module.

This is the package.json on my node module. I've made sure that any dependencies match the version I use on my sites.
`
{
  "name": "cpl-react-test",
  "version": "3.0.4",
  "peerDependencies": {
    "@reduxjs/toolkit": "^1.8.5",
    "@testing-library/jest-dom": "^5.16.4",
    "@testing-library/react": "^13.1.1",
    "@testing-library/user-event": "^13.5.0",
    "@types/jest": "27.4.1",
    "@types/node": "16.11.27",
    "@types/react": "18.0.6",
    "@types/react-dom": "18.0.2",
    "react": "18.0.0",
    "react-dom": "18.0.0",
    "react-redux": "8.0.2",
    "react-scripts": "5.0.1",
    "typescript": "^4.6.3",
    "web-vitals": "^3.0.1"
  },
  "devDependencies": {
    "@reduxjs/toolkit": "^1.8.5",
    "@testing-library/jest-dom": "^5.16.4",
    "@testing-library/react": "^13.1.1",
    "@testing-library/user-event": "^13.5.0",
    "@types/jest": "27.4.1",
    "@types/node": "16.11.27",
    "@types/react": "18.0.6",
    "@types/react-dom": "18.0.2",
    "react": "18.0.0",
    "react-dom": "18.0.0",
    "react-redux": "8.0.2",
    "react-scripts": "5.0.1",
    "typescript": "^4.6.3",
    "web-vitals": "^3.0.1"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "description": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app), using the [Redux](https://redux.js.org/) and [Redux Toolkit](https://redux-toolkit.js.org/) TS template.",
  "main": "index.tsx",
  "author": "",
  "license": "ISC"
}


`
I have researched this a bit, but I'm struggling to find the solution, I think because I don't really understand the problem, or whether I'm going about this the right way at all. Any insight on what I should be looking for or doing would be greatly appreciated.
