Coder Social home page Coder Social logo

@ant-design-vue/nuxt deps error about nuxt HOT 8 CLOSED

bobby169 avatar bobby169 commented on June 15, 2024
@ant-design-vue/nuxt deps error

from nuxt.

Comments (8)

markthree avatar markthree commented on June 15, 2024 1

@bobby169
I see that you are using pnpm without including a .npmrc file.
You should add a .npmrc file to the root directory with the following content ↓

shamefully-hoist=true
auto-install-peers=true

Finally, run pnpm install again.

from nuxt.

markthree avatar markthree commented on June 15, 2024 1

@avxkim Please provide the reproducible repository, I'm more than willing to help you take a look.

from nuxt.

markthree avatar markthree commented on June 15, 2024 1

@avxkim

I found that ant-design-vue-nuxt would get stuck in the case of layer, so I eliminated the layer

demo.zip

This is a separate issue, please file a new issue in ant-design-vue-nuxt/issues

from nuxt.

bobby169 avatar bobby169 commented on June 15, 2024

@bobby169 I see that you are using pnpm without including a .npmrc file. You should add a .npmrc file to the root directory with the following content ↓

shamefully-hoist=true
auto-install-peers=true

Finally, run pnpm install again.

Thank you very much, solved my problem

from nuxt.

avxkim avatar avxkim commented on June 15, 2024

@markthree i've added this to my .npmrc and re-run pnpm install, still getting this error related to a dayjs, what else it might be?

from nuxt.

avxkim avatar avxkim commented on June 15, 2024

ui-kit.zip
uploaded my app without node_modules

from nuxt.

avxkim avatar avxkim commented on June 15, 2024

@markthree i've started from scratch on a clean nuxt installation (without layers) and found out that we also need:

  "devDependencies": {
    "@ant-design-vue/nuxt": "^1.4.1",
    "ant-design-vue": "^4.1.2"
  }

in nuxt.config.ts

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ["@ant-design-vue/nuxt"],
antd: {
  extractStyle: true,
},
css: ["ant-design-vue/dist/reset.css"],
vite: {
  resolve: {
    alias: {
      "ant-design-vue/dist": "ant-design-vue/dist",
      "ant-design-vue/es": "ant-design-vue/es",
      "ant-design-vue/lib": "ant-design-vue/es",
      "ant-design-vue": "ant-design-vue/es",
    },
  },
},
});

from nuxt.

markthree avatar markthree commented on June 15, 2024

@avxkim

Yes, I think it's a problem with ant-design-vue-nuxt/issues

from nuxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.