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

Bug: "alias" option is deprecated. Use "resolve.alias" instead. #15

Closed
KonnorRogers opened this issue Feb 17, 2021 · 3 comments
Closed
Labels
bug: pending triage Something doesn't seem to be working, but hasn't been verified

Comments

@KonnorRogers
Copy link

KonnorRogers commented Feb 17, 2021

Description 📖

On a new project, after going through setup steps on a new rails project, attempt to run bundle exec vite build and receive the following error:

bundle exec vite build
I, [2021-02-16T20:35:08.134871 #67630]  INFO -- : Building with Vite ⚡️
E, [2021-02-16T20:35:08.846910 #67630] ERROR -- : Build with Vite failed:
building for production...
✓ 0 modules transformed.

(!) "alias" option is deprecated. Use "resolve.alias" instead.
You must supply options.input to rollup
error during build:
Error: You must supply options.input to rollup
    at Graph.generateModuleGraph (/Users/konnorrogers/projects/personal/carebnb/node_modules/vite/node_modules/rollup/dist/shared/rollup.js:19184:19)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Graph.build (/Users/konnorrogers/projects/personal/carebnb/node_modules/vite/node_modules/rollup/dist/shared/rollup.js:19148:9)
    at async rollupInternal (/Users/konnorrogers/projects/personal/carebnb/node_modules/vite/node_modules/rollup/dist/shared/rollup.js:20053:9)
    at async doBuild (/Users/konnorrogers/projects/personal/carebnb/node_modules/vite/dist/node/chunks/dep-9bcbff8e.js:46359:24)
    at async build (/Users/konnorrogers/projects/personal/carebnb/node_modules/vite/dist/node/chunks/dep-9bcbff8e.js:46305:16)
    at async CAC.<anonymous> (/Users/konnorrogers/projects/personal/carebnb/node_modules/vite/dist/node/cli.js:13985:9)

EDIT: After some digging im assuming this is most likely the culprit:

alias, // Fallback just in case someone is using < beta.68

@KonnorRogers KonnorRogers added the bug: pending triage Something doesn't seem to be working, but hasn't been verified label Feb 17, 2021
@ElMassimo
Copy link
Owner

Hi Konnor, as it mentions in the comment, we are passing it in the old format as well, in case anyone had pinned an older version of Vite.

Now that Vite is officially out of beta, I'll remove this line.

Thanks for the reminder!

@KonnorRogers
Copy link
Author

@ElMassimo No problem! I figured as much looking at the code, figured I'd file a formal issue :)

@ElMassimo
Copy link
Owner

Closed in 64c5865.

Released "vite-plugin-ruby": "^1.0.13".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: pending triage Something doesn't seem to be working, but hasn't been verified
Projects
None yet
Development

No branches or pull requests

2 participants