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

[Bug]: Toast - Failed to load source map for @internationalized/date #545

Closed
2 tasks
frenicohansen opened this issue May 10, 2024 · 5 comments · Fixed by radix-vue/radix-vue#941
Closed
2 tasks
Labels
bug Something isn't working upstream Related to Vue Core or VueUse or Volar or other packages

Comments

@frenicohansen
Copy link

Reproduction

https://stackblitz.com/edit/vitejs-vite-ofaacw?file=app.vue

Describe the bug

If I use the Toast component following warnings showed up in my terminal.

Nuxt 3.11.2 with Nitro 2.9.6                                                                                                                14:28:36
                                                                                                                                            14:28:37
  ➜ Network:  https://stackblitz.com/edit/vitejs-vite-ofaacw [QR code]
  ➜ Local:    http://localhost:3000/

ℹ Using Tailwind CSS from ~/assets/css/tailwind.css                                                                       nuxt:tailwindcss 14:28:45
  ➜ DevTools: press Shift + Alt + D in the browser (v1.2.0)                                                                                 14:28:48

ℹ Tailwind Viewer: http://localhost:3000/_tailwind/                                                                       nuxt:tailwindcss 14:28:49
ℹ Compiled plugins/server.mjs in 935.34ms                                                                                                  14:28:51
ℹ Compiled types/plugins.d.ts in 937.91ms                                                                                                  14:28:51
ℹ Compiled plugins/client.mjs in 965.64ms                                                                                                  14:28:51
ℹ Vite client warmed up in 8355ms                                                                                                          14:29:02

[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/CalendarDate.mjs.map'


[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/GregorianCalendar.mjs.map'


[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/JapaneseCalendar.mjs.map'


[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/BuddhistCalendar.mjs.map'


[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/TaiwanCalendar.mjs.map'


[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/PersianCalendar.mjs.map'


[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/IndianCalendar.mjs.map'


[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/IslamicCalendar.mjs.map'


[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/HebrewCalendar.mjs.map'


[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/EthiopicCalendar.mjs.map'


[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/createCalendar.mjs.map'


[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/conversion.mjs.map'


[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/queries.mjs.map'


[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/string.mjs.map'


[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/DateFormatter.mjs.map'


[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/manipulation.mjs.map'


[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/utils.mjs.map'


[14:29:09]  WARN  Failed to load source map for /home/projects/vitejs-vite-ofaacw/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
ENOENT: no such file or directory, open '/home/projects/vitejs-vite-ofaacw/node_modules/.pnpm/@internationalized+date@3.5.3/node_modules/@internationalized/date/dist/weekStartData.mjs.map'

ℹ Vite server warmed up in 15275ms                                                                                                         14:29:09
✔ Nuxt Nitro server built in 8058 ms       

System Info

System:
    OS: macOS 14.4.1
    CPU: (8) x64 Intel(R) Core(TM) i7-8557U CPU @ 1.70GHz
    Memory: 167.13 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.6.1 - ~/.nvm/versions/node/v20.6.1/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v20.6.1/bin/yarn
    npm: 9.8.1 - ~/.nvm/versions/node/v20.6.1/bin/npm
    pnpm: 9.1.0 - ~/.nvm/versions/node/v20.6.1/bin/pnpm
  Browsers:
    Safari: 17.4.1

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@frenicohansen frenicohansen added the bug Something isn't working label May 10, 2024
@sadeghbarati sadeghbarati added the upstream Related to Vue Core or VueUse or Volar or other packages label May 11, 2024
@frenicohansen
Copy link
Author

@vchan14
Copy link

vchan14 commented May 14, 2024

had the same problem.

look like this package is used by radix-vue.

image

@NeoPrint3D
Copy link

NeoPrint3D commented May 14, 2024

I believe I've identified the issue. It seems that Nuxt is attempting to lazy load everything, so when the toaster or tooltip component is placed in the app.vue file, Nuxt is unable to resolve the toaster and as a result, it causes the missing map files."

IE. remove the or form the app.vue -> layout/default.vue or the page you are using the component

Edit: For whatever reason for me its the tooltip provider and not the toaster

@vchan14
Copy link

vchan14 commented May 15, 2024

I have problems with all the components. I've confirmed by starting a new project.

@sukbearai
Copy link

how to resolve?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream Related to Vue Core or VueUse or Volar or other packages
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants