jacob-ebey / remix-ssg

A CLI for building static sites with Remix
https://remix-ssg.pages.dev
55 stars 1 forks source link

Does not work with Remix 2.5.1: TypeError: Cannot convert undefined or null to object #21

Open rustyx opened 9 months ago

rustyx commented 9 months ago

I try the "Quick Start" steps...

$ npx create-remix@latest
$ cd my-remix-app/
$ npm install -D remix-ssg serve
$ cat <<"EOM" >>app/routes/_index.tsx

export function getStaticPaths() {
  return ["/"];
}
EOM

and it fails:

$ remix-ssg public
 info  building... (NODE_ENV=production)
 info  built (181ms)
Generating 1 static HTML pages...
file:///home/user/my-remix-app/node_modules/remix-ssg/lib/cli.mjs:80
      for (const [routeId, routeData] of Object.entries(
                                                ^

TypeError: Cannot convert undefined or null to object
    at Function.entries (<anonymous>)
    at file:///home/user/my-remix-app/node_modules/remix-ssg/lib/cli.mjs:80:49
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///home/user/my-remix-app/node_modules/remix-ssg/lib/cli.mjs:12:1
$ npm ls
my-remix-app@ /home/user/my-remix-app
├── @remix-run/css-bundle@2.5.1
├── @remix-run/dev@2.5.1
├── @remix-run/node@2.5.1
├── @remix-run/react@2.5.1
├── @remix-run/serve@2.5.1
├── @types/react-dom@18.2.18
├── @types/react@18.2.48
├── @typescript-eslint/eslint-plugin@6.19.1
├── eslint-config-prettier@9.1.0
├── eslint-import-resolver-typescript@3.6.1
├── eslint-plugin-import@2.29.1
├── eslint-plugin-jsx-a11y@6.8.0
├── eslint-plugin-react-hooks@4.6.0
├── eslint-plugin-react@7.33.2
├── eslint@8.56.0
├── isbot@4.4.0
├── react-dom@18.2.0
├── react@18.2.0
├── remix-ssg@0.0.8
├── serve@14.2.1
└── typescript@5.3.3
imki123 commented 9 months ago

me too

rustyx commented 9 months ago

Forget about this - the project is long abandoned..