Skip to content

Commit

Permalink
fix(requireFn): stub Node's tty module
Browse files Browse the repository at this point in the history
  • Loading branch information
liady committed Jun 27, 2024
1 parent 34e0b4b commit 3ab7f9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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, '*'),
]
}
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

0 comments on commit 3ab7f9f

Please sign in to comment.