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

Console warnings with Vite with newest Kobalte version #406

Closed
gBasil opened this issue May 4, 2024 · 3 comments
Closed

Console warnings with Vite with newest Kobalte version #406

gBasil opened this issue May 4, 2024 · 3 comments

Comments

@gBasil
Copy link

gBasil commented May 4, 2024

Describe the bug
After upgrading Kobalte, running Vite and visiting the Vite dev page prints a lot of errors in the Vite process' console about sourcemap errors with the @internationalized/date package (see the Screenshots section).

To Reproduce
Steps to reproduce the behavior:

Example repo: https://github.com/gBasil/kobalte-source-map-error

  1. Clone repo
  2. Install packages
  3. Run the dev script.
  4. Go to the URL in the browser
  5. See the errors printed out in the Vite process.

Expected behavior

There should not be errors in the console.

Screenshots

9:01:26 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/CalendarDate.mjs.
Error: An error occurred while trying to read the map file at CalendarDate.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/CalendarDate.mjs.map'
9:01:26 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/BuddhistCalendar.mjs.
Error: An error occurred while trying to read the map file at BuddhistCalendar.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/BuddhistCalendar.mjs.map'
9:01:26 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/TaiwanCalendar.mjs.
Error: An error occurred while trying to read the map file at TaiwanCalendar.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/TaiwanCalendar.mjs.map'
9:01:26 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/PersianCalendar.mjs.
Error: An error occurred while trying to read the map file at PersianCalendar.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/PersianCalendar.mjs.map'
9:01:26 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/IndianCalendar.mjs.
Error: An error occurred while trying to read the map file at IndianCalendar.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/IndianCalendar.mjs.map'
9:01:26 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/GregorianCalendar.mjs.
Error: An error occurred while trying to read the map file at GregorianCalendar.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/GregorianCalendar.mjs.map'
9:01:26 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/JapaneseCalendar.mjs.
Error: An error occurred while trying to read the map file at JapaneseCalendar.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/JapaneseCalendar.mjs.map'
9:01:26 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/createCalendar.mjs.
Error: An error occurred while trying to read the map file at createCalendar.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/createCalendar.mjs.map'
9:01:26 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/EthiopicCalendar.mjs.
Error: An error occurred while trying to read the map file at EthiopicCalendar.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/EthiopicCalendar.mjs.map'
9:01:26 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/IslamicCalendar.mjs.
Error: An error occurred while trying to read the map file at IslamicCalendar.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/IslamicCalendar.mjs.map'
9:01:26 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/conversion.mjs.
Error: An error occurred while trying to read the map file at conversion.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/conversion.mjs.map'
9:01:26 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/string.mjs.
Error: An error occurred while trying to read the map file at string.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/string.mjs.map'
9:01:26 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/HebrewCalendar.mjs.
Error: An error occurred while trying to read the map file at HebrewCalendar.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/HebrewCalendar.mjs.map'
9:01:26 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/DateFormatter.mjs.
Error: An error occurred while trying to read the map file at DateFormatter.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/DateFormatter.mjs.map'
9:01:26 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/queries.mjs.
Error: An error occurred while trying to read the map file at queries.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/queries.mjs.map'
9:01:26 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+number@3.5.2/node_modules/@internationalized/number/dist/NumberFormatter.mjs.
Error: An error occurred while trying to read the map file at NumberFormatter.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+number@3.5.2/node_modules/@internationalized/number/dist/NumberFormatter.mjs.map'
9:01:26 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+number@3.5.2/node_modules/@internationalized/number/dist/NumberParser.mjs.
Error: An error occurred while trying to read the map file at NumberParser.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+number@3.5.2/node_modules/@internationalized/number/dist/NumberParser.mjs.map'
9:01:27 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/manipulation.mjs.
Error: An error occurred while trying to read the map file at manipulation.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/manipulation.mjs.map'
9:01:27 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/utils.mjs.
Error: An error occurred while trying to read the map file at utils.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/utils.mjs.map'
9:01:27 PM [vite] Failed to load source map for /Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/weekStartData.mjs.
Error: An error occurred while trying to read the map file at weekStartData.mjs.map
Error: ENOENT: no such file or directory, open '/Path/to/kobalte-test/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/weekStartData.mjs.map'

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chromium (Vivaldi)
  • Kobalte Version: ^0.13.1
@oedotme
Copy link
Contributor

oedotme commented May 12, 2024

I've also opened an issue at adobe/react-spectrum#6367

@jer3m01
Copy link
Member

jer3m01 commented May 13, 2024

Looks like an issue from @internationalized/date@3.5.3, you can pin the dependency to version 3.5.2 or wait for the fix adobe/react-spectrum#6368 (thanks to @oedotme!)

@jer3m01 jer3m01 closed this as completed May 13, 2024
@widcardw
Copy link

Same problem with @internationalized/number. I've changed it to 3.5.1 and the warnings may disappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants