Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(requireFn): stub Node's tty module #6026

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import * as ReactDOM from 'react-dom'
import * as ReactRouter from 'react-router'
import * as ReactJsxRuntime from 'react/jsx-runtime'
import * as UtopiaAPI from 'utopia-api'
import * as TTYStub from './node-builtin-shims/tty-stub'
import * as UUIUI from '../../../uuiui'
import * as UUIUIDeps from '../../../uuiui-deps'
import * as RemixServerBuild from './built-in-third-party-dependencies/remix-server-build'
Expand Down Expand Up @@ -121,5 +122,7 @@ export function createBuiltInDependenciesList(
builtInDependency('@remix-run/eslint-config', Stub, '2.1.0'),
builtInDependency('@shopify/cli', Stub, '3.50.0'),
builtInDependency('@shopify/cli-hydrogen', Stub, '6.0.0'),
// Node builtins
builtInDependency('tty', TTYStub, '*'),
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const isatty = () => false

export function ReadStream() {
throw new Error('tty.ReadStream is not implemented')
}

export function WriteStream() {
throw new Error('tty.WriteStream is not implemented')
}
1 change: 1 addition & 0 deletions editor/src/core/tailwind/tailwind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ function getTailwindConfig(
return left('Tailwind config contains no default export')
}
} catch (error) {
console.error('Error loading tailwind config', error)
return left(error)
}
}
Expand Down
Loading