vite-plugin-federation
vite-plugin-federation copied to clipboard
error: Uncaught SyntaxError: Cannot use 'import.meta' outside a module
Versions
- vite-plugin-federation: ^1.2.3
- vite: ^4.3.5
Reproduction
Use angular12 webpack5 as the host, vite as remote, and export a vue component, there will be such an error
Perhaps adding a scriptType attribute can fix this
https://github.com/angular-architects/module-federation-plugin/issues/96#issuecomment-981896034
here is simple source code vue as remote:https://github.com/huajian123/dpt-vue angular as shell:https://github.com/huajian123/ng-test-mf
the angular as shell is returning a 404 error.
I'm running into this same issue with a
HOST: Craco/Create React App REMOTE: Vite
Was hoping to get some tips about how this could be resolved.
the angular as shell is returning a 404 error.
I'm running into this same issue with a
HOST: Craco/Create React App REMOTE: Vite
Was hoping to get some tips about how this could be resolved.
I fixed it
the angular as shell is returning a 404 error. I'm running into this same issue with a HOST: Craco/Create React App REMOTE: Vite Was hoping to get some tips about how this could be resolved.
I fixed it
how?
@huajian123 How did you fix it?