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

We are using abandoned Razzle - should it be removed or replaced? #1345

Open
matkoniecz opened this issue Mar 11, 2024 · 2 comments
Open

We are using abandoned Razzle - should it be removed or replaced? #1345

matkoniecz opened this issue Mar 11, 2024 · 2 comments

Comments

@matkoniecz
Copy link
Contributor

See https://github.com/jaredpalmer/razzle and https://github.com/jaredpalmer/razzle/commits/master/

Luckily it is used in dev environment and in build process, not in production.

Still, it would be a good idea to replace it.

@matkoniecz
Copy link
Contributor Author

I tried upgrading webpack-dev-server to 4.0.0 - this was blocked by latest released Razzle being broken.

Though maybe we can patch it somehow for now? But breakage caused by Razzle being dead will get worse.

And while for now it is survivable we may have problem if something will need to updated for one or another reason and it will break on old versions and new ones will break on Razzle.

Ideally it would be proactively fixed.

ERROR in ./node_modules/razzle-dev-utils/webpackHotDevClientV4.js 18:10-24
Module not found: Error: Can't resolve 'url' in '/home/cldbadmin/colouring-britain/app/node_modules/razzle-dev-utils'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
	- add a fallback 'resolve.fallback: { "url": require.resolve("url/") }'
	- install 'url'
If you don't want to include a polyfill, you can use an empty module like this:
	resolve.fallback: { "url": false }
resolve 'url' in '/home/cldbadmin/colouring-britain/app/node_modules/razzle-dev-utils'
  Parsed request is a module
  using description file: /home/cldbadmin/colouring-britain/app/node_modules/razzle-dev-utils/package.json (relative path: .)
    Field 'browser' doesn't contain a valid alias configuration
    resolve as module
      /home/cldbadmin/colouring-britain/app/node_modules/razzle-dev-utils/node_modules doesn't exist or is not a directory
      /home/cldbadmin/colouring-britain/app/node_modules/node_modules doesn't exist or is not a directory
      looking for modules in /home/cldbadmin/colouring-britain/app/node_modules
        single file module
          using description file: /home/cldbadmin/colouring-britain/app/package.json (relative path: ./node_modules/url)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /home/cldbadmin/colouring-britain/app/node_modules/url doesn't exist
            .mjs
              Field 'browser' doesn't contain a valid alias configuration
              /home/cldbadmin/colouring-britain/app/node_modules/url.mjs doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /home/cldbadmin/colouring-britain/app/node_modules/url.js doesn't exist
            .jsx
              Field 'browser' doesn't contain a valid alias configuration
              /home/cldbadmin/colouring-britain/app/node_modules/url.jsx doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              /home/cldbadmin/colouring-britain/app/node_modules/url.json doesn't exist
            .ts
              Field 'browser' doesn't contain a valid alias configuration
              /home/cldbadmin/colouring-britain/app/node_modules/url.ts doesn't exist
            .tsx
              Field 'browser' doesn't contain a valid alias configuration
              /home/cldbadmin/colouring-britain/app/node_modules/url.tsx doesn't exist
        /home/cldbadmin/colouring-britain/app/node_modules/url doesn't exist
      /home/cldbadmin/colouring-britain/node_modules doesn't exist or is not a directory
      /home/cldbadmin/node_modules doesn't exist or is not a directory
      /home/node_modules doesn't exist or is not a directory
      /node_modules doesn't exist or is not a directory

@matkoniecz
Copy link
Contributor Author

Advice is definitely wanted, what would be the best tool for roles fulfilled by Razzle in this project?

Maybe @tomalrussell or @mz8i have advise what they would use nowadays?

@polly64 polly64 changed the title We are using abandoned Razzle - it should be removed or replaced We are using abandoned Razzle - should it be removed or replaced? Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants