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

插件:@ice/plugin-i18n 报错 TypeError: addDefineRoutesFunc is not a function #6170

Closed
caoxuccc opened this issue Apr 18, 2023 · 2 comments
Labels

Comments

@caoxuccc
Copy link

Describe the bug

image

image

Expected behavior

正常运行

Actual behavior

插件内找不到addDefineRoutesFunc

Version of ice.js

3.0

Content of build.json or ice.config.mts

import { defineConfig } from '@ice/app';
import request from '@ice/plugin-request';
import store from '@ice/plugin-store';
import auth from '@ice/plugin-auth';
import i18n from '@ice/plugin-i18n';
import provider from "./plugins/provider-plugin";
import authPlugin from "./plugins/auth-plugin";

// The project config, see https://v3.ice.work/docs/guide/basic/config
const minify = process.env.NODE_ENV === 'production' ? 'swc' : false;

export default defineConfig(() => ({
  ssg: false,
  minify,
  plugins: [request(), store(), auth(), provider(), authPlugin(), i18n({
    locales: ['zh-CN', 'en-US', 'de'],
    defaultLocale: 'zh-CN',
  }),],
  routes: {
    ignoreFiles: ['**/components/**'],
  },
  compileDependencies: false,
}));

Additional context

No response

@caoxuccc caoxuccc added the bug label Apr 18, 2023
@luhc228
Copy link
Collaborator

luhc228 commented Apr 18, 2023

还未发正式版本,代码还在 review 中 #6149

@caoxuccc
Copy link
Author

@luhc228 好吧🥲

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants