You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a newly initialized project using Ant Design Pro, an error occurs stating that the dayjs module cannot be resolved, even though it is correctly installed in node_modules. This issue happens when trying to use components like DatePicker and others from @ant-design/pro-field.
π· Recurrence Steps
Initialize a new project using the Ant Design Pro template.
npx @umijs/create-umi-app my-app
Install dependencies with npm install or yarn install.
Start the development server using npm run dev or yarn dev.
Observe the errors related to dayjs in the terminal.
π Expected Results
The development server should start without errors, and components like DatePicker should work correctly with dayjs.
π» Recurrence Code
A clean, newly initialized Ant Design Pro project from master with no additional modifications.
Module not found: Error: Can't resolve 'dayjs' in ...
...
Module not found: Error: Can't resolve 'dayjs/plugin/advancedFormat' in ...
node_modules/dayjs is present, and the package structure seems correct. The issue persists even after cleaning the cache and reinstalling dependencies.
The text was updated successfully, but these errors were encountered:
π Bug
In a newly initialized project using Ant Design Pro, an error occurs stating that the
dayjs
module cannot be resolved, even though it is correctly installed innode_modules
. This issue happens when trying to use components likeDatePicker
and others from@ant-design/pro-field
.π· Recurrence Steps
npm install
oryarn install
.npm run dev
oryarn dev
.dayjs
in the terminal.π Expected Results
The development server should start without errors, and components like
DatePicker
should work correctly withdayjs
.π» Recurrence Code
A clean, newly initialized Ant Design Pro project from master with no additional modifications.
Β© Version Information
π Additional Information
Here is the error log from the terminal:
node_modules/dayjs
is present, and the package structure seems correct. The issue persists even after cleaning the cache and reinstalling dependencies.The text was updated successfully, but these errors were encountered: