Skip to content

[vite] Internal server error: Inline JavaScript is not enabled. Is it set in your options? Plugin: vite:css File: D:/WWW/vue-admin/node_modules/ant-design-vue/lib/style/color/bezierEasing.less 107| // It is hacky way to make this function will be compiled preferentially by less 108| // resolve error: ReferenceError: colorPalette is not defined 109| // https://github.com/ant-design/ant-motion/issues/44 | ^ 110| .bezierEasingMixin(); #5

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

Open
any86 opened this issue Dec 6, 2021 · 1 comment

Comments

@any86
Copy link
Owner

any86 commented Dec 6, 2021

image

如果使用了ant-design-vue, 需要在vite.config.js中增加如下配置:

export default defineConfig({
  // plugins: [vue()],

 // 对less配置
  css: {
    preprocessorOptions: {
      less: {
        javascriptEnabled: true,
      },
    }
  }
})
@quantuminformation
Copy link

ha, I also get this with vite and antd

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

2 participants