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

browser support no longer works as of 24.0.0 #1604

Open
souporserious opened this issue Jan 18, 2025 · 0 comments
Open

browser support no longer works as of 24.0.0 #1604

souporserious opened this issue Jan 18, 2025 · 0 comments

Comments

@souporserious
Copy link

souporserious commented Jan 18, 2025

Describe the bug

Version: >24.0.0

Since version 24.0.0 it seems browser support no longer works and throws this error when trying to load with an in-memory file system:

Image

It looks like this may have been introduced in #1549 here.

To Reproduce

Using a framework like Next.js and trying to load ts-morph on the client will produce the error above:

'use client'
import { Project } from 'ts-morph'

export default function Page() {
  const fileSystem = new Project({
    useInMemoryFileSystem: true,
  })
  return null
}

Expected behavior

Similar to previous versions an in-memory file system should not error in browser environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants