persian-tools / persian-mobile-datepicker

Modern React Persian Mobile Date and Time picker
https://persian-tools.github.io/persian-mobile-datepicker
MIT License
113 stars 9 forks source link

Unable to resolve module `rmc-picker/assets/index.css` #5

Open peyman-hakemi opened 3 years ago

peyman-hakemi commented 3 years ago

کتبخونه رو نصب کردم ولی وقتی میخوام اجرا کنم برنامه رو با این ارور مواجه میشم

error: Error: Unable to resolve module rmc-picker/assets/index.css from node_modules\@persian-tools\persian-mobile-datepicker\build\index.js: rmc-picker/assets/index.css could not be found within the project.

ali-master commented 3 years ago

توی فایل package-lock.json دنبال اسم rmc-picker بگرد و ببین چه نسخه ایش رو نصب کردی؟

peyman-hakemi commented 3 years ago

توی package-lock.json چیزی با این اسم ندیدم اصلا

در ضمن نمیدونم ربط داره یا نه ولی برای نصب من این شکلی عمل کردم

yarn add @persian-tools/persian-mobile-datepicker چون --save رو بزارم نصب نمیشه و این ارور رو میداد

error Missing list of packages to add to your project.

peyman-hakemi commented 3 years ago
    "react": "16.13.1",
    "react-native": "0.63.2",

این هم ورژن هایی هست که استفاده میکنم

ali-master commented 3 years ago

پیمان جان،

این کتابخونه مخصوص React Native نیستش متاسفانه و دارم روی نسخه React Native اش کار میکنم و توی یک ریپو دیگه ای منتشرش میکنم احتمالا.

mojtabajahannia commented 2 years ago

سلام، توی نکست هم این مشکل هست

"rmc-picker": "^5.0.10",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"next": "^12.0.2",
"@persian-tools/persian-mobile-datepicker": "0.0.12",

erro:

./node_modules/rmc-picker/assets/index.css
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
Location: node_modules/@persian-tools/persian-mobile-datepicker/build/index.module.js
ali-master commented 2 years ago

سلام، توی نکست هم این مشکل هست

"rmc-picker": "^5.0.10",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"next": "^12.0.2",
"@persian-tools/persian-mobile-datepicker": "0.0.12",

erro:

./node_modules/rmc-picker/assets/index.css
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
Location: node_modules/@persian-tools/persian-mobile-datepicker/build/index.module.js

سلام مجتبی جان

ممنونم که گزارش کردی، دارم بررسیش میکنم

Abdilar commented 1 year ago

سلام، توی نکست هم این مشکل هست

"rmc-picker": "^5.0.10",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"next": "^12.0.2",
"@persian-tools/persian-mobile-datepicker": "0.0.12",

erro:

./node_modules/rmc-picker/assets/index.css
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
Location: node_modules/@persian-tools/persian-mobile-datepicker/build/index.module.js

علی جان این مشکل برا نکست حل شد آیا؟ @ali-master

ali-master commented 1 year ago

بررسی می‌کنم که مشکل از کتابخونه هستش یا تنظیمات nextjs البته متاسفانه فعلا وقتش رو ندارم. اگر کسی از دوستان می‌تونه وقت بذاره خیلی قدردانی می‌کنم.

MaryamEsmaily commented 1 year ago

هنوزم حل نشد؟=)))))