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

Remix Quickstart: Could not resolve "remix" #55

Closed
pavlovtech opened this issue Apr 3, 2022 · 5 comments
Closed

Remix Quickstart: Could not resolve "remix" #55

pavlovtech opened this issue Apr 3, 2022 · 5 comments

Comments

@pavlovtech
Copy link

pavlovtech commented Apr 3, 2022

In the section Loading Data of Quickstart there is following code:

import { json, useLoaderData } from "remix";

After adding it there is an error:

ERROR: Could not resolve "remix"

It seems there is no such package in packages.json. Are remix docs not up to date?

@kentcdodds
Copy link
Member

Sorry for the trouble. We're moving away from the remix package and soon the docs will be updated. We updated this repo too early.

Thanks for the report!

@handreistoicescu
Copy link

Hey, @kentcdodds! I got stuck on the tutorial following this error. Could you please elaborate a bit on how to fix this?

Thanks in advance!

@kentcdodds
Copy link
Member

The tutorial has been updated. You'll need to update those imports:

import { json } from "@remix-run/node";
import { useLoaderData } from "@remix-run/react";

@handreistoicescu
Copy link

@kentcdodds

Thanks for looking into this!

Just a heads-up that these changes to the docs aren't reflected (yet?) in the website build. I'm still seeing the old version, even after refreshing, hard-refreshing or opening in an incognito browser window. Could it be that these changes have not been deployed yet?

URL I'm using Screenshot
https://remix.run/docs/en/v1/tutorials/blog#loading-data Screenshot 2022-04-10 at 15 01 41

I hope this helps. Thanks for the awesome work on Remix!

@kentcdodds
Copy link
Member

Thanks. I'll look into it!

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

No branches or pull requests

3 participants