What should be the appropriate loader to use when using paste? #1586
-
Hi team! I'm trying migrate a project to paste, but at the moment of adding a paste component, the project starts failing to compile with the following error
I'm currently using
In case it helps, it happens when I add a component, not in any previous step (adding paste, importing it) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @jquinterog, So the error is coming from
Your loader config for
This is fine, because we aren't importing a Typescript file here. But this is an import of an ES Module, and that usually needs transpilation. You can fix this in two ways:
Let us know what ends up working for you! |
Beta Was this translation helpful? Give feedback.
-
Closing this discussion due to inactivity. If you'd like to re-open it, feel free to reply here. |
Beta Was this translation helpful? Give feedback.
Closing this discussion due to inactivity. If you'd like to re-open it, feel free to reply here.