We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I encounter this error when I build the host using module federation.
react-pdf
vite.config.ts
federation({ name: "remote", filename: "remoteEntry.js", exposes: { "./ReactPdfViewer": "./resources/js/ReactPdfViewer", }, shared: ["react", "react-dom", "@react-pdf-viewer/core"], }),
federation({ name: 'host', remotes: { remote: 'http://localhost:5004/public/build/assets/remoteEntry.js', }, shared: [ 'react', 'react-dom', 'react-pdf', ], }),
The build should run successfully on both the remote and host applications, and we should be able to import the ReactPdfViewer component.
ReactPdfViewer
The build process fails on the host application with the error: Error: Missing "./package.json" export in "react-pdf" package
No response
The text was updated successfully, but these errors were encountered:
462d7ed
No branches or pull requests
Before you start - checklist
Description
I encounter this error when I build the host using module federation.
Steps to reproduce
react-pdf
as described in the doc into the component)vite.config.ts
:vite.config.ts
:Expected behavior
The build should run successfully on both the remote and host applications, and we should be able to import the
ReactPdfViewer
component.Actual behavior
The build process fails on the host application with the error: Error: Missing "./package.json" export in "react-pdf" package
Additional information
No response
Environment
The text was updated successfully, but these errors were encountered: