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

Bug: pnpm build -- [Error] Loading PostCSS Plugin failed: Cannot find module 'cssnano' #5171

Open
5 tasks done
awsssrD opened this issue Dec 18, 2024 · 3 comments · May be fixed by #5185
Open
5 tasks done

Bug: pnpm build -- [Error] Loading PostCSS Plugin failed: Cannot find module 'cssnano' #5171

awsssrD opened this issue Dec 18, 2024 · 3 comments · May be fixed by #5185

Comments

@awsssrD
Copy link

awsssrD commented Dec 18, 2024

Version

Vben Admin V5

Describe the bug?

pnpm build -- [Error] Loading PostCSS Plugin failed: Cannot find module 'cssnano'

Reproduction

package.json dependencies add line content is "cssnano": "catalog:"

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 11th Gen Intel(R) Core(TM) i5-11400 @ 2.60GHz
    Memory: 14.21 GB / 31.73 GB
  Binaries:
    Node: 20.18.0 - C:\node\node.EXE
    Yarn: 1.22.22 - C:\node\yarn.CMD
    npm: 10.8.2 - C:\node\npm.CMD
    pnpm: 9.15.0 - C:\node\pnpm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.19041.4355

Relevant log output

No response

Validations

@mynetfan
Copy link
Collaborator

mynetfan commented Dec 18, 2024

是原版clone之后出现的问题还是你修改过的?

@xisuo67
Copy link

xisuo67 commented Dec 19, 2024

是原版clone之后出现的问题还是你修改过的?

image
源代码,执行build:antd

xisuo67 added a commit to xisuo67/vue-vben-admin that referenced this issue Dec 19, 2024
fix bug Cannot find module 'cssnano'
This was referenced Dec 19, 2024
@mynetfan
Copy link
Collaborator

无此问题。请用不带中文的路径完整clone此项目后再测试

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

Successfully merging a pull request may close this issue.

3 participants