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

Missing "./wire" specifier in "@bufbuild/protobuf" package #978

Closed
jonavos opened this issue Sep 20, 2024 · 2 comments
Closed

Missing "./wire" specifier in "@bufbuild/protobuf" package #978

jonavos opened this issue Sep 20, 2024 · 2 comments

Comments

@jonavos
Copy link

jonavos commented Sep 20, 2024

As of this morning (20/9), all of our builds, CI & local, are failing with the above message.

The full error is:

vite v4.5.3 building for development...
transforming...
✓ 50 modules transformed.
[commonjs--resolver] Missing "./wire" specifier in "@bufbuild/protobuf" package
✓ built in 1.88s
error during build:
Error: Missing "./wire" specifier in "@bufbuild/protobuf" package
    at e (file:///home/runner/01/_work/redacted/webpage/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:21445:25)
    at n (file:///home/runner/01/_work/redacted/webpage/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:21445:627)
    at o (file:///home/runner/01/_work/redacted/webpage/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:21445:1297)
    at resolveExportsOrImports (file:///home/runner/01/_work/redacted/webpage/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:28746:20)
    at resolveDeepImport (file:///home/runner/01/_work/redacted/webpage/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:28765:31)
    at tryNodeResolve (file:///home/runner/01/_work/redacted/webpage/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:28453:20)
    at Object.resolveId (file:///home/runner/01/_work/redacted/webpage/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:28212:28)
    at file:///home/runner/01/_work/redacted/webpage/node_modules/rollup/dist/es/shared/node-entry.js:25539:40
    at async PluginDriver.hookFirstAndGetPlugin (file:///home/runner/01/_work/redacted/webpage/node_modules/rollup/dist/es/shared/node-entry.js:25439:28)
    at async resolveId (file:///home/runner/01/_work/redacted/webpage/node_modules/rollup/dist/es/shared/node-entry.js:24112:26)

Googling doesn't seem to yield any results. And it doesn't appear to be a change on our part as rerunning a successful job from yesterday fails today.

Any help would be appreciated. Thanks.

@jonavos
Copy link
Author

jonavos commented Sep 20, 2024

We resolved this by pinning the version of buf.build/community/stephenh-ts-proto to v1.178.0.

It was updated yesterday and that appears to have broken our usage.

@jonavos jonavos closed this as completed Sep 20, 2024
@timostamm
Copy link
Member

Hey Jon, it looks like Vite v4 does not support package.json exports yet. The limitation is most likely in Rollup, not Vite itself. It might very well be possible to fix the issue by updating to a more recent version of @rollup/plugin-node-resolve.

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

2 participants