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

Bump @react-aria versions to address missing source maps and console spam #3238

Closed
short-dsb opened this issue May 24, 2024 · 2 comments · Fixed by #3247
Closed

Bump @react-aria versions to address missing source maps and console spam #3238

short-dsb opened this issue May 24, 2024 · 2 comments · Fixed by #3247

Comments

@short-dsb
Copy link

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

v2.0.3

What browser are you using?

N/A

Reproduction URL

See adobe/react-spectrum#6355.

Describe your issue

Currently, @headlessui/react relies on versions of @react-aria/focus and @react-aria/interactions that are missing source maps, resulting in console spam like the following:

WARNING in ./node_modules/@react-aria/interactions/dist/useInteractOutside.mjs
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from './node_modules/@react-aria/interactions/dist/useInteractOutside.mjs.map' file: Error: ENOENT: no such file or directory, open './node_modules/@react-aria/interactions/dist/useInteractOutside.mjs.map'

The missing source maps have been restored in the latest release of @react-aria. Can the dependencies of this project be updated to address this issue?

@abel-officener
Copy link

I too am experiencing the same problem.
It does not occur if you run it immediately after installing the module.
I confirmed that turning it off and running it again caused the problem.

@RobinMalfait
Copy link
Member

Hey! You should be able to just run npm update because all the new versions of those packages are within the range specified in our package.json.

That said, we also bumped them anyway via #3247, and will be available in the next release.

You can already try it using:

  • npm install @headlessui/react@insiders.

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

Successfully merging a pull request may close this issue.

3 participants