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

Composition Preview React Errors With Barebones Setup #40

Open
johnjspiteri opened this issue Mar 2, 2022 · 0 comments
Open

Composition Preview React Errors With Barebones Setup #40

johnjspiteri opened this issue Mar 2, 2022 · 0 comments

Comments

@johnjspiteri
Copy link

Hi @ocombe ,

I have been having different issues with our isolated Bit packages, so I decided to start with a barebones setup.

Ran these commands:

bit new ng-workspace plain -a teambit.angular/angular-v13
bit create ng-module test
bit install
bit start

Got these errors... then ran (and deleted the ".git/bit" folder):

bit clear-cache
bit capsule delete --all
Uncaught TypeError: class constructors must be invoked with 'new'
    React 17
    _default mount.js:46
    render compositions.preview.runtime.js:69
    PreviewPreview preview.preview.runtime.js:144
    render preview.root1d95616f2064e17cf4a6a9e5c34cd260b5b3c2f7.js:39
    promise callback*render/< preview.root1d95616f2064e17cf4a6a9e5c34cd260b5b3c2f7.js:35
    promise callback*render preview.root1d95616f2064e17cf4a6a9e5c34cd260b5b3c2f7.js:32
    node_modules main.bundle.js:60398
    factory react refresh:6
    Webpack 3
react-dom.development.js:14985
    React 17
    _default mount.js:46
    render compositions.preview.runtime.js:69
    render self-hosted:1178
    PreviewPreview preview.preview.runtime.js:144
    AsyncFunctionNext self-hosted:695
    (Async: async)
    render preview.root1d95616f2064e17cf4a6a9e5c34cd260b5b3c2f7.js:39
    (Async: promise callback)
    render preview.root1d95616f2064e17cf4a6a9e5c34cd260b5b3c2f7.js:35
    (Async: promise callback)
    render preview.root1d95616f2064e17cf4a6a9e5c34cd260b5b3c2f7.js:32
    js preview.root1d95616f2064e17cf4a6a9e5c34cd260b5b3c2f7.js:50
    factory react refresh:6
    Webpack 3

Here is the reproduction repo - https://github.com/johnjspiteri/bit-angular-test-v13.22

Thank you

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

No branches or pull requests

1 participant