#node ERR_MODULE_NOT_FOUND when following quickstart guide

1 messages · Page 1 of 1 (latest)

fossil stream
#

I am following the qucikstart guide without issue, however i am at the part where I run the application with express for the first time. When I try to do so I get the following error message:

I have tried using a different version of node.js as described in a git issue as well as verified that the module is installed.

The server.js is copied from the quickstart guide and has not been edited.

I am also using yarn.

glass garnet
#

I just tried the steps in the quickstart tutorial and I got it working both, with remix-serve and later with node server.js after setting up Express

#

Reached the "Run your app with express", didn't follow the Vite setup

#

For your consideration: the quick start guide is there just so you can familiarize with the way Remix does some stuff, and learn, but we really don't setup projects using those steps, as there are many things to configure, and it's better to just use the basic scaffolder, or better, the templates

#

If you really-really want to dig in what's going on with your setup, I'll suggest that:

  1. throw away everything you've done so far
  2. restart reading the quick start guide, but this time start by creating a git repo at the very beginning:
git init
  1. atomize every step of the tutorial and commit after each one, so you can go back and fix if you mess up again. For example, I'd start with:
npm init

This will generate your package.json, now go ahead and commit it before jumping to the next command, which installs basic Remix dependencies.

  1. Commit after each change/addition
#

Finally, if you again don't end up with a running Remix Demo project, then you can push your git repo to GitHub or some other public place, and came here again asking, but this time you'll got code to show and we can help you better, as we will know now if missed a step or put something else in your files