netlify / remix-template

Deploy your Remix site to Netlify
83 stars 27 forks source link

npm run dev doesn't work #68

Closed ticup closed 1 year ago

ticup commented 1 year ago

Using a fresh clone of this repository npm run dev doesn't work. When going to the server's endpoint I get

.netlify/edge-functions/server.js:15626
export {
^^^^^^

SyntaxError: Unexpected token 'export'
    at Object.compileFunction (node:vm:360:18)
    at wrapSafe (node:internal/modules/cjs/loader:1088:15)
    at Module._compile (node:internal/modules/cjs/loader:1123:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at node_modules/@remix-run/serve/index.js:43:17
    at Layer.handle [as handle_request] (node_modules/express/lib/router/layer.js:95:5)

Not using remix CLI, but using netlify CLI, it does work though: npm run start

nickytonline commented 1 year ago

I'm going to go ahead and close this as the official template will be coming soon. It's based off of work in https://github.com/netlify/remix-compute/pull/16 and https://github.com/netlify/remix-edge-template/pull/83