Git Product home page Git Product logo

remix-practical-guide-course-resources's Issues

Can't get import statements to work using the tilde (~)

The path "/components/NewNote" is imported in app/routes/notes.jsx but "/components/NewNote" was not found in your node_modules. Did you forget to install it?
✘ [ERROR] Could not resolve "~/components/NewNote"

app/routes/notes.jsx:1:20:
  1 │ import NewNote from '~/components/NewNote';
    ╵                     ~~~~~~~~~~~~~~~~~~~~~~

You can mark the path "~/components/NewNote" as external to exclude it from the bundle, which will remove this error.

I also noticed that your slides reference a remix.config.js that is different from the one here in github (but trying either doesn't change the error)

As well, the npx create-remix added:
// import { cssBundleHref } from "@remix-run/css-bundle";
and
// export const links = () => [
// ...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : []),
// ];

and I commented those out in favor of the course's method of doing links etc.

NoteDetailsPage Not Being Invoked

For some reason my NoteDetailsPage() function is not being called. I put this function in notes.$noteid.tsx and the loader works exactly as expected. What am I doing wrong? I can provide all of the source code if need be. Is this a Remix V1 vs. V2 problem? Did I accidentally create a resource route? How do I debug this problem? I am at 1:55:14 of https://www.youtube.com/watch?v=RBYJTop1e-g&t=3843s. Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.