I recently created a typescript monorepo here with the following organized folder structure:
.
└── packages
├── package.json // Contains the monorepo workspace configuration
├── web-app // Includes the NextJS website files
└── web-core // Holds the redux business logic components
Whenever I initiate yarn dev
either in the root directory or within the web-app
directory, I encounter this parsing error message:
error - ../web-core/index.ts
Module parse failed: Unexpected token (3:7)
You may need an appropriate loader to handle this file type, as currently no loaders are configured to process this file. Check out https://webpack.js.org/concepts#loaders
| export * from "./counter";
| export { default as MyProvider } from "./provider";
> export type { RootState } from "./store";
|
I understand that this is likely a webpack or babel issue within the web-core
directory, but I would greatly appreciate some guidance on how to resolve this issue. Any help would be greatly appreciated. Thank you!