You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a mono-repo setup and for pure convenience I break out some UI elements into their own space. I write everything in typescript and I don't pre-compile before consuming since it is not a library level component and is better served with a single build step. However, I am finding I am unable to consume them when compiling the extension directly:
Module parse failed: Unexpected token (3:12)
@client/extension:dev:extension: File was processed with these loaders:
@client/extension:dev:extension: * ../../node_modules/.pnpm/@pmmmwh+react-refresh-webpack-plugin@0.5.15_react-refresh@0.14.2_type-fest@4.30.2_webpack-dev_pkywu7dqex7ppaebmqazmuo6qi/node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js
In contrast, storybook will load these components fine when running dev from there.
At present I just pull those TS files directly into the extension parent folder to make it all come together, but that is less than ideal. I want to make sure I am not missing a crucial step, or documentation point for how to sort this.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
👋🏼
I have a mono-repo setup and for pure convenience I break out some UI elements into their own space. I write everything in typescript and I don't pre-compile before consuming since it is not a library level component and is better served with a single build step. However, I am finding I am unable to consume them when compiling the extension directly:
Module parse failed: Unexpected token (3:12) @client/extension:dev:extension: File was processed with these loaders: @client/extension:dev:extension: * ../../node_modules/.pnpm/@pmmmwh+react-refresh-webpack-plugin@0.5.15_react-refresh@0.14.2_type-fest@4.30.2_webpack-dev_pkywu7dqex7ppaebmqazmuo6qi/node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js
In contrast, storybook will load these components fine when running dev from there.
At present I just pull those TS files directly into the extension parent folder to make it all come together, but that is less than ideal. I want to make sure I am not missing a crucial step, or documentation point for how to sort this.
Thanks in advance!
The text was updated successfully, but these errors were encountered: