Jiannan Zhang

Results 85 comments of Jiannan Zhang

> 目前比较大问题 卡在 > > ``` > [vite] Internal server error: Failed to resolve import "host/App" from "src\App.tsx". Does the file exist? > Plugin: vite:import-analysis > 我用dev没有报错,而且react还是尽量用build吧,dev运行起来会有其他奇奇怪怪的打包问题

你看看这个 https://github.com/originjs/vite-plugin-federation/issues/129#issuecomment-1048474627

@AndreiSoroka How can I reproduce the problem?

@AndreiSoroka HI , thx for your reproduce repo I changed the configuration and I see it locally like this and it seems to work ![image](https://user-images.githubusercontent.com/70385062/186870230-5f14ca3c-c024-4a30-abfd-753a9ef19b0e.png) ![image](https://user-images.githubusercontent.com/70385062/186870277-a2d973f1-9971-495f-b933-adb6bf3440e4.png) you only need to...

This plugin can only load components from remote, it does not help you to run a vue3 component on vue2, but this may help you to use this library to...

I probably know what the reason for the failure is, because federation's shared only looks under node_modules, not according to its own remotes, so it can't find `auth` modules ![image](https://user-images.githubusercontent.com/70385062/163911053-128b7503-d8d9-4212-b1ce-593d98f74793.png)

This should be one of the subsequent features to be implemented, I'll add it to the plan first, thanks

> Hi @ruleeeer, I' ve step into a similar issue. > > I created a copy of [react-vite example](https://github.com/originjs/vite-plugin-federation/tree/main/packages/examples/react-vite?rgh-link-date=2023-01-07T09%3A12%3A20Z) and just replaced package.json scripts to use yarn. Here is the...

@susannakosic Until I release a new version, here's another simple way to solve the problem, change the contents of shared in the app dir. ## before ``` js shared: ['react']...