remoteEnty.js file not found in development mode #455
Answered
by
sohaibaumer
stephencranedesign
asked this question in
Q&A
-
I have a really basic vite project from running My vite config looks like this: import { defineConfig } from 'vite';
// import react from '@vitejs/plugin-react-swc';
import federation from '@originjs/vite-plugin-federation';
// https://vitejs.dev/config/
export default defineConfig({
mode: 'development',
plugins: [
// react(),
federation({
name: 'remote1',
filename: 'remoteEntry.js',
exposes: {
'./App': './src/App',
},
shared: [],
}),
],
}); The dev server starts fine on port 5173 but I can't find where the remoteEntry.js file is. I've tried: Where's it suppose to be and how do I get it to be created? |
Beta Was this translation helpful? Give feedback.
Answered by
sohaibaumer
Jul 13, 2023
Replies: 1 comment 2 replies
-
npm run build |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
stephencranedesign
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
npm run build
'http://localhost:5173/dist/remoteEntry.js'