Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Transpiling in a mono-repo #250

Open
collectedmind opened this issue Jan 31, 2025 · 0 comments
Open

Question: Transpiling in a mono-repo #250

collectedmind opened this issue Jan 31, 2025 · 0 comments

Comments

@collectedmind
Copy link

👋🏼

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant