-
Follow-up to #2516. Just started to use this package to migrate off of react-datetime, and it's the only package having stylesheet resolution issues. I'm using 9.1.4 and getting this: Error: Package path ./style.css is not exported from package /[project path]/node_modules/react-day-picker (see exports field in /[project path]/node_modules/react-day-picker/package.json). See example here: https://stackblitz.com/edit/webpack-webpack-js-org-3gydhk?file=src%2Fapp.scss I've tried All of the other packages I'm using where the imports work just fine have entries in their package.json that look a little different, e.g yet-another-react-lightbox:
It's something to do with the import/require entries for the stylesheets. If I make this package's exports look like this then
In #2533 mentioned in the release notes there's a link for testing resolution, and there are still a bunch of resolution failed messages for the new version: https://arethetypeswrong.github.io/?p=react-day-picker%409.1.4 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@karlshea Thanks for sharing your stack! It looks like you're trying to import Instead of importing the style from a Sass file, I suggest importing it directly in your import './app.scss';
+ import 'react-day-picker/style.css'; Additionally, update your CSS loader in - test: /\.(scss)$/,
+ test: /\.(s?css)$/,
Keep in mind, this tool tests TypeScript types, but it does not verify |
Beta Was this translation helpful? Give feedback.
PR: #2547
Let's see what the test runner does.