I'm trying to import a typescript component via a published npm package.
I've created a storybook repo. When I import the published storybook package and run: pnpm run dev or pnpm run build I get the following error message:
Module parse failed: The keyword 'interface' is reserved (3:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import classes from './index.module.scss'
|
> interface ButtonProps {
...
}
Versions:
- [email protected]
- [email protected] - using the Next.js Compiler rather than babel
I'm not sure if this is a storybook or nextjs issue, anyone have any ideas?