-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Vite build error with property decorators usage #934
Comments
vite is not required to use Nuxt Bridge. |
@wattanx, we have a large project and can't rewrite all components without property decorators in one time. But we want to update project step by step and it is main reason to use nuxt bridge. This its purpose - Is not it? |
Yes, the purpose of Nuxt Bridge is to provide a step-by-step migration to Nuxt 3. Next, investigate the issue of not being able to use nitro or vite. I think it is a recommended to reduce nuxt-property-decorator step by step, because it is not possible to migrate to Nuxt 3 even if Nuxt Bridge is used if nuxt-property-decorator is left as it is. |
The target of issue just is get answer - why nuxt bridge can't build with vite + property decorators and get possible solution (m.b. specific configuration) that helps to resolve it. Additional notes for issue:
Wrong only I think the possible reason is incomplete internal build configuration in nuxt bridge + nuxi |
It may be better to create an issue in the nuxt-property-decorator repository. If vite is working with |
No! I investigate it- problem is not in I guess the problem is in - how to nuxt bridge + vite build project with any TS decorators And i think the problem can be solved, because pure |
Oh, sorry. I finally understood. |
The latest version seems to solve this problem by setting the |
Environment
Reproduction
Codesandbox
Describe the bug
Try to vite build when use property decorators - throws error:
Unexpected character '@' (Note that you need plugins to import files that are not JavaScript)
It's very serios problem for project migration that use nuxt-property-decorators lib
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: