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

Import error #1

Closed
2 tasks done
rjdellecese opened this issue Jun 1, 2021 · 1 comment
Closed
2 tasks done

Import error #1

rjdellecese opened this issue Jun 1, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@rjdellecese
Copy link
Contributor

Checklist

Describe the bug

When trying to import { yCollab } from "y-codemirror.next; in a TypeScript file compiled with Webpack 5, I receive the following error:

Module not found: Error: Can't resolve 'y-codemirror.next' in '{absolute-path-to-directory-containing-file-where-imported}'
resolve 'y-codemirror.next' in '{absolute-path-to-directory-containing-file-where-imported}'

...

Field 'browser' doesn't contain a valid alias configuration

...

To Reproduce

Steps to reproduce the behavior:

  1. Attempt the import statement above in a TypeScript project compiled with Webpack 5.

Expected behavior

The import would succeed without incident.

Environment Information

  • y-codemirror.next@0.0.1
  • Potentially relevant tsconfig.json options—
    "compilerOptions": {
      "module": "ES6",
      "moduleResolution": "node",
    },

Additional Information

Thank you for Yjs!!

@rjdellecese
Copy link
Contributor Author

Fully resolved by #2!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants