generated from fastify/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Change require "url" to "node:url" did make it incompatible with usage inside browser / web #82
Closed
2 tasks done
Labels
bug
Something isn't working
Comments
alexander-schranz
changed the title
Change url to node:url did make it incompatible with usage inside browser
Change require "url" to "node:url" did make it incompatible with usage inside browser
Jun 4, 2024
alexander-schranz
changed the title
Change require "url" to "node:url" did make it incompatible with usage inside browser
Change require "url" to "node:url" did make it incompatible with usage inside browser / web
Jun 4, 2024
same problem here |
Thanks for reporting! It would be great to solve the |
Please remove to URL import altogether and make it use the global variable |
I think there is still some work needed to do before we can make fast-uri run on the Web: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Fastify version
Plugin version
2.3.0
Node.js version
v14.21.3
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
12.7.4
Description
The changes in 6c97e35
seems to break packages which using it as example via webpack in the browser. I'm not 100% sure if this package was created to work inside browser but thought I would report it if it should.
Currently because of
node:url
the ajv is failing now which is package used for json schema validation in some cases as we in @sulu using it in browser: ajv-validator/ajv#2446Link to code that reproduces the bug
ajv-validator/ajv#2446
Expected Behavior
Should work inside the browser / web apps compiles with webpack 4 / 5.
Workaround
For all coming from ajv-validator/ajv#2446 you can downgrade ajv to a version not using
fast-uri
:or downgrade fast-uro to:
The text was updated successfully, but these errors were encountered: