Packages that enable v1 APIs in Remix v2 to enable easier upgrades.
remix-run / v1-compat-utils Goto Github PK
View Code? Open in Web Editor NEWPackages that enable v1 APIs in Remix v2 to enable easier upgrades.
License: MIT License
Packages that enable v1 APIs in Remix v2 to enable easier upgrades.
License: MIT License
Packages that enable v1 APIs in Remix v2 to enable easier upgrades.
2.0.0 (or trying to)
npx upgrade-remix 2.0.0
On a 1.19.3 project with v1-meta and v1-route-convention both installed.
Upgrade goes ahead.
npm install fails:
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: reset-apollo@undefined
npm WARN Found: @remix-run/[email protected]
npm WARN node_modules/@remix-run/dev
npm WARN peer @remix-run/dev@"^1.15.0" from @remix-run/[email protected]
npm WARN node_modules/@remix-run/v1-route-convention
npm WARN @remix-run/v1-route-convention@"^0.1.2" from the root project
npm WARN 1 more (the root project)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @remix-run/dev@"^1.15.0" from @remix-run/[email protected]
npm WARN node_modules/@remix-run/v1-route-convention
npm WARN @remix-run/v1-route-convention@"^0.1.2" from the root project
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @remix-run/[email protected]
npm ERR! Found: @remix-run/[email protected]
npm ERR! node_modules/@remix-run/react
npm ERR! @remix-run/react@"2.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @remix-run/react@"^1.15.0" from @remix-run/[email protected]
npm ERR! node_modules/@remix-run/v1-meta
npm ERR! @remix-run/v1-meta@"^0.1.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @remix-run/[email protected]
npm ERR! node_modules/@remix-run/react
npm ERR! peer @remix-run/react@"^1.15.0" from @remix-run/[email protected]
npm ERR! node_modules/@remix-run/v1-meta
npm ERR! @remix-run/v1-meta@"^0.1.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
I'm in the process of upgrading my project to ESM but am running into this issue:
Cannot find module 'node_modules\@remix-run\dev\dist\config\routes' imported from node_modules\@remix-run\v1-route-convention\dist\index.mjs
In my remix.config.js
I import it like this: import { createRoutesFromFolders } from '@remix-run/v1-route-convention';
It worked fine in cjs land but now I'm stuck.
Error: Error loading Remix config at remix.config.js
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'node_modules\@remix-run\dev\dist\config\routes' imported from node_modules\@remix-run\v1-route-convention\dist\index.mjs
Did you mean to import @remix-run/dev/dist/config/routes.js?
at Object.readConfig (node_modules\@remix-run\dev\dist\config.js:76:13)
at async Object.watch (node_modules\@remix-run\dev\dist\cli\commands.js:216:78)
at async Object.run (node_modules\@remix-run\dev\dist\cli\run.js:498:7)
Hey,
Trying to upgrade to newer versions of remix and running into the issue of old peer dependencies on the remix-dev package. Could those be updated, please?
1.17.0
Precision : Do not use the new dev server but the historic one.
The route is registered and accessible without full reload of dev server.
The route is not registered.
Created a repo to reproduce here:
https://github.com/cliffordfajardo/remix_express_v1_to_v2_routes_bug
@remix-run/*
dependencies to version 2.0.1
@remix-run/v1-route-convention
package to continue using V1 routes@remix-run/v1-route-convention
packagenpm run dev
& the error will appear๐ฟ remix dev
Error: Error loading Remix config at /Users/cfajardo/Desktop/remix_express_v1_to_v2_routes_bug/remix.config.js
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/cfajardo/Desktop/remix_express_v1_to_v2_routes_bug/node_modules/@remix-run/dev/dist/config/routes' imported from /Users/cfajardo/Desktop/remix_express_v1_to_v2_routes_bug/node_modules/@remix-run/v1-route-convention/dist/index.mjs
Did you mean to import @remix-run/dev/dist/config/routes.js?
at Object.readConfig (/Users/cfajardo/Desktop/remix_express_v1_to_v2_routes_bug/node_modules/@remix-run/dev/dist/config.js:72:13)
at async Object.dev (/Users/cfajardo/Desktop/remix_express_v1_to_v2_routes_bug/node_modules/@remix-run/dev/dist/cli/commands.js:179:18)
at async Object.run (/Users/cfajardo/Desktop/remix_express_v1_to_v2_routes_bug/node_modules/@remix-run/dev/dist/cli/run.js:192:7)
NOTE: all of these steps have been applied is in the bug reproduction repo:
https://github.com/cliffordfajardo/remix_express_v1_to_v2_routes_bug
Hi,
it seems the v1-route-convention package is causing problems when using the unstable_vitePlugin (see remix-run/remix#8585).
I just spend half a day figuring out why the local dev server was stopping unexpectedly and after removing the v1-route-convention package (as described in the above issue it finally starts, but the project is obviously broken now as we haven't migrated to the v2 route convention yet.
Before we do that however I was wondering if there are any plans on making the package compatible with the vitePlugin?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.