Git Product home page Git Product logo

Comments (9)

mcansh avatar mcansh commented on May 1, 2024 2

sorry for the delay folks! a stable release for this should be going out today or tomorrow, in the meantime you can upgrade to the nightly channel or do what @peterpostmann posted or use // @ts-expect-error and when you upgrade typescript will throw when that's no longer broken

from grunge-stack.

peterpostmann avatar peterpostmann commented on May 1, 2024 1

This fixed the error for me:

import { createRequestHandler } from "@remix-run/architect";
import * as build from "@remix-run/dev/server-build";
import type { ServerBuild } from "@remix-run/server-runtime/dist/build";

if (process.env.NODE_ENV !== "production") {
  require("./mocks");
}

export const handler = createRequestHandler({
  build: build as ServerBuild,
  mode: process.env.NODE_ENV,
});

from grunge-stack.

jtushman avatar jtushman commented on May 1, 2024

note when I look at the dev branch of remix I see the interface fullfilled:

https://github.com/remix-run/remix/blob/dev/packages/remix-dev/server-build.ts

/* eslint-disable no-unreachable */
import type { ServerBuild } from "@remix-run/server-runtime";

throw new Error(
  "@remix-run/dev/server-build is not meant to be used directly from node_modules." +
    " It exists to provide type definitions for a virtual module provided" +
    " by the Remix compiler at build time."
);

export const assets: ServerBuild["assets"] = undefined!;
export const entry: ServerBuild["entry"] = undefined!;
export const routes: ServerBuild["routes"] = undefined!;
export const publicPath: ServerBuild["publicPath"] = undefined!;
// prettier-ignore
export const assetsBuildDirectory: ServerBuild["assetsBuildDirectory"] = undefined!;

from grunge-stack.

jtushman avatar jtushman commented on May 1, 2024

think this was the PR that caused it:

remix-run/remix@3951fbf

cc @mcansh

from grunge-stack.

mcansh avatar mcansh commented on May 1, 2024

think this was the PR that caused it:

remix-run/remix@3951fbf

cc @mcansh

that PR actually fixed it, but hasn't been released to stable yet, you can try out the nightly tag in the interim as noted here #85 (comment)

this is the one that initially caused the build error with bundled servers remix-run/remix#3349

from grunge-stack.

jtushman avatar jtushman commented on May 1, 2024

gotcha -- thx ( should I close this? )

from grunge-stack.

mcansh avatar mcansh commented on May 1, 2024

we can keep this one open until a new (stable) remix release is out

from grunge-stack.

woxpillar avatar woxpillar commented on May 1, 2024

Is there any fix? I am still getting the error.

from grunge-stack.

github-actions avatar github-actions commented on May 1, 2024

This issue has been automatically marked stale because we haven't received a response from the original author in a while 🙈. This automation helps keep the issue tracker clean from issues that are not actionable. Please reach out if you have more information for us or you think this issue shouldn't be closed! 🙂 If you don't do so within 7 days, this issue will be automatically closed.

from grunge-stack.

Related Issues (20)

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.