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

使用initial-state等插件报错 #968

Open
HuckOps opened this issue Mar 13, 2024 · 0 comments
Open

使用initial-state等插件报错 #968

HuckOps opened this issue Mar 13, 2024 · 0 comments

Comments

@HuckOps
Copy link

HuckOps commented Mar 13, 2024

umi4中引入以下插件

  plugins: [
    '@umijs/plugins/dist/dva',
    '@umijs/plugins/dist/model',
    // '@umijs/plugins/dist/access',
    '@umijs/plugins/dist/initial-state'
  ],

运行yarn startyarn install出现如下报错:

  The plugin "esbuildAliasPlugin" was triggered by this import

    src/.umi/plugin-initialState/Provider.tsx:5:25:
      5 │ import { useModel } from '@@/plugin-model';
        ╵                          ~~~~~~~~~~~~~~~~~

观察在src/.umi目录下没有生成plugin-model目录

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

1 participant