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

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

Open
peyman-hakemi opened this issue Sep 21, 2021 · 9 comments
Open

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

peyman-hakemi opened this issue Sep 21, 2021 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@peyman-hakemi
Copy link

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

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
Copy link
Member

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

@ali-master ali-master self-assigned this Sep 21, 2021
@ali-master ali-master added the bug Something isn't working label Sep 21, 2021
@peyman-hakemi
Copy link
Author

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

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

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

error Missing list of packages to add to your project.

@peyman-hakemi
Copy link
Author

    "react": "16.13.1",
    "react-native": "0.63.2",

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

@ali-master
Copy link
Member

پیمان جان،

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

@mojtabajahannia
Copy link

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

"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
Copy link
Member

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

"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
Copy link

Abdilar commented Nov 17, 2022

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

"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
Copy link
Member

ali-master commented Nov 17, 2022

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

@MaryamEsmaily
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants