question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Property 'future' is missing in type 'typeof import("./node_modules/@remix-run/dev/server-build")'

See original GitHub issue

What version of Remix are you using?

1.8.0

Steps to Reproduce

remix.config.js

/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
  devServerBroadcastDelay: 1000,
  ignoredRouteFiles: ['**/.*'],
  server: './server/index.ts',
};

server/index.ts

import express from 'express';
import { createRequestHandler } from '@remix-run/express';
import * as build from '@remix-run/dev/server-build';

const app = express();

app.use('/build', express.static('public/build', { immutable: true, maxAge: '1y' }));

app.use(express.static('public', { maxAge: '1h' }));

app.all(
  '*',
  createRequestHandler({
    build,
    mode: process.env.NODE_ENV,
  })
);

app.listen(3000);

Expected Behavior

The changes to @remix-run/server-runtime from 1.7.6 (the version I was using) to 1.8.0 are listed as patch and minor changes, so I expected my existing code to be compatible.

Actual Behavior

error

Note

I tried adding future: {} to remix.config.js as per the discussion in https://github.com/remix-run/remix/issues/4759, but this does not resolve the issue.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
chaancecommented, Dec 5, 2022

Confirmed that this is fixed in 1.8.1-pre.0. Patch coming soon 👍

1reaction
machourcommented, Dec 5, 2022

@MichaelDeBoey #4759 is about Vercel. Kept both open to gather the maximum feedback for the team.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Property 'default' is missing in type 'typeof import("...")' but ...
For anyone in the future that got in here. At the point that I'm typing, for React.lazy() to work you SHOULD follow ONE...
Read more >
roperty 'install' is missing in type 'typeof import · Issue #4736
dist/types/index.d.ts did not declare install ** This error appears when calling Vue.use(Quasar) with typescript Property 'install' is ...
Read more >
React.js: Property is missing in type but required in type
The React.js error "Property is missing in type but required in type" occurs when we don't pass all of the required props to...
Read more >
Property 'render' is missing in type '{ loader: () => Promise
You can see that my code below is very simple, but I was getting an error, for some reason: import * as React...
Read more >
Type 'typeof IdleState' is missing the following properties.
I want to initialize instance of class inside AddState function. Upvote
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found