ant-design-mobile icon indicating copy to clipboard operation
ant-design-mobile copied to clipboard

[Calendar] - next.js + TM + antd-design

Open 00010100 opened this issue 2 years ago • 4 comments

Version of antd-mobile

5.15.1

Operating system and its version

No response

Browser and its version

102.0.5005.115 (Official Build) (64-bit)

Sandbox to reproduce

No response

What happened?

Calendar doesn't work, I created a new next.js project and after antd-mobile and TM installed (it needs to avoid CSS global error after installation of antd-mobile) it was broken. Need some help, because I've no idea why it happened.

package.json

"dependencies": {
    "antd-mobile": "^5.15.1",
    "next": "12.1.6",
    "next-transpile-modules": "^9.0.0",
    "react": "17.0.2",
    "react-dom": "17.0.2",
  },

next.config.js

const withTM = require("next-transpile-modules")(["antd-mobile"]);
const nextConfig = {
  reactStrictMode: true,
}
module.exports = withTM(nextConfig);

https://user-images.githubusercontent.com/39006224/174610742-e6bfc527-2bf3-493d-934a-6b308ea2fae6.mp4

Relevant log output

No response

00010100 avatar Jun 20 '22 13:06 00010100

This is strange… Can you zip and upload the project? Or push it to a GitHub repo so that we can check the code.

awmleer avatar Jun 21 '22 02:06 awmleer

Yes. There is a zip folder.

test-project.zip

00010100 avatar Jun 21 '22 06:06 00010100

I've investigated the project you uploaded but sorry that I couldn't find anything wrong there. It's really strange. I decided to give up digging further because we'll rewrite the Calendar component very soon.

I'll leave this issue open so we can have a check about the new Calendar component later.

Thanks for your feedback.

awmleer avatar Jun 22 '22 09:06 awmleer

I also encountered this problem

w1687021088 avatar Sep 05 '22 08:09 w1687021088

I had the same problem

laozhangjia avatar Oct 12 '22 01:10 laozhangjia

same problem........

hinhinlaw avatar Nov 23 '22 08:11 hinhinlaw

@miracles1919 @zombieJ Is there any plan to build the new Calendar component?

awmleer avatar Nov 24 '22 01:11 awmleer