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

vite 5.1.1 error during build #468

Closed
nestle49 opened this issue Feb 9, 2024 · 6 comments
Closed

vite 5.1.1 error during build #468

nestle49 opened this issue Feb 9, 2024 · 6 comments
Labels
problem: needs more info This issue needs more information in order to handle it problem: no repro No reproduction was provided (and have not tried to repro without one) problem: removed issue template OP removed the issue template without good cause scope: integration Related to an integration, not necessarily to core (but could influence core) scope: Vite Related to integration with Vite, not Rollup, which this plugin was designed for scope: vue Related to integration with Vue (rollup-plugin-vue is long archived), not core

Comments

@nestle49
Copy link

nestle49 commented Feb 9, 2024

vite v5.1.1 building for production...
✓ 0 modules transformed.
error during build:

    at Object._object (/Users/developer/PhpstormProjects/foodsoul-kit/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:27290:18)
    at Object.dispatch (/Users/developer/PhpstormProjects/foodsoul-kit/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:27257:31)
    at /Users/developer/PhpstormProjects/foodsoul-kit/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:27318:19
    at Array.forEach (<anonymous>)
    at Object._object (/Users/developer/PhpstormProjects/foodsoul-kit/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:27314:22)
    at Object.dispatch (/Users/developer/PhpstormProjects/foodsoul-kit/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:27257:31)
    at /Users/developer/PhpstormProjects/foodsoul-kit/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:27318:19
    at Array.forEach (<anonymous>)
    at Object._object (/Users/developer/PhpstormProjects/foodsoul-kit/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:27314:22)
    at Object.dispatch (/Users/developer/PhpstormProjects/foodsoul-kit/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:27257:31)
@agilgur5 agilgur5 added problem: removed issue template OP removed the issue template without good cause problem: no repro No reproduction was provided (and have not tried to repro without one) scope: Vite Related to integration with Vite, not Rollup, which this plugin was designed for labels Feb 9, 2024
@agilgur5 agilgur5 changed the title vite 5.1.1 rollup-plugin-typescript2 error during build vite 5.1.1 error during build Feb 9, 2024
@agilgur5
Copy link
Collaborator

agilgur5 commented Feb 9, 2024

Do not remove the issue template, it is there for a reason.
An error stack trace with 0 context is not actionable.

@agilgur5 agilgur5 closed this as completed Feb 9, 2024
@agilgur5 agilgur5 added the problem: needs more info This issue needs more information in order to handle it label Feb 9, 2024
@nestle49
Copy link
Author

nestle49 commented Feb 9, 2024

I get this error after upgrade vue version from 3.4.15 (needed 3.4.16 or later)

Related issue (with minimal package and config, I can't reproduce project)
vuejs/core#10300

@agilgur5 agilgur5 added the scope: vue Related to integration with Vue (rollup-plugin-vue is long archived), not core label Feb 9, 2024
@agilgur5
Copy link
Collaborator

agilgur5 commented Feb 9, 2024

I get this error after upgrade vue version from 3.4.15 (needed 3.4.16 or later)

That sounds like an issue in Vue then, not rpt2.

Related issue (with minimal package and config, I can't reproduce project)
vuejs/core#10300

The config there is pretty far from minimal, and is a Vite config not a Rollup config.
Notably, it does not seem to run rpt2 before esbuild either, which can cause a variety of issues as rpt2 is operating on untyped JS at that point.
There is also no source code provided, only config.

Note that maintainers there said something very similar as well, in much shorter form and despite the significantly more details you provided there than here.

@agilgur5 agilgur5 added the scope: integration Related to an integration, not necessarily to core (but could influence core) label Feb 9, 2024
@nestle49
Copy link
Author

I get this error after upgrade vue version from 3.4.15 (needed 3.4.16 or later)

That sounds like an issue in Vue then, not rpt2.

Related issue (with minimal package and config, I can't reproduce project)
vuejs/core#10300

The config there is pretty far from minimal, and is a Vite config not a Rollup config. Notably, it does not seem to run rpt2 before esbuild either, which can cause a variety of issues as rpt2 is operating on untyped JS at that point. There is also no source code provided, only config.

Note that maintainers there said something very similar as well, in much shorter form and despite the significantly more details you provided there than here.

Thanks, yes I think that vue problem

I created reproduction https://github.com/nestle49/minimalReproduction
And I updated vue issue

@agilgur5
Copy link
Collaborator

I created reproduction https://github.com/nestle49/minimalReproduction

Again, this is pretty far from minimal, and still has all the Vite/esbuild issues I mentioned above as well

@nestle49
Copy link
Author

Upstream problem answered in vue, if you're interested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem: needs more info This issue needs more information in order to handle it problem: no repro No reproduction was provided (and have not tried to repro without one) problem: removed issue template OP removed the issue template without good cause scope: integration Related to an integration, not necessarily to core (but could influence core) scope: Vite Related to integration with Vite, not Rollup, which this plugin was designed for scope: vue Related to integration with Vue (rollup-plugin-vue is long archived), not core
Projects
None yet
Development

No branches or pull requests

2 participants