codesandbox-client icon indicating copy to clipboard operation
codesandbox-client copied to clipboard

Project works localy but does not work in codesandbox.io

Open babich-a opened this issue 5 years ago • 2 comments

🐛 bug report

Preflight Checklist

  • [x] I have read the Contributing Guidelines for this project.
  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Description of the problem

After upgrade the devextreme library some sandboxes stop working with angular framework.

How has this issue affected you? What are you trying to accomplish?

To Reproduce

Here a simple example made from vanilla-typescript template. It works with [email protected], but does not work with [email protected] (you can change it in package.json). It works with [email protected] too if I download the project and build it with npm run build.

In most cases, I have the following error in console (BrowserModule is included):

Unhandled Promise rejection: No ErrorHandler. Is platform module (BrowserModule) included? ; Zone: <root> ; Task: Promise.then ; Value: Error: No ErrorHandler. Is platform module (BrowserModule) included?

Sometimes I get the following error:

Cannot use import statement outside a module

The same issue I have in angular project https://codesandbox.io/s/jolly-aryabhata-q6dnr?file=/package.json made from condesandbox angular template. Only dependencies were added to the package.json

    "devextreme": "21.1.4",
    "devextreme-angular": "21.1.4"

and import to the app.module.ts

import { DxButtonModule } from "devextreme-angular";
....
imports: [BrowserModule, DxButtonModule],

I understand that most likely the problem is in the devextreme library. But I can't understand where.

Link to sandbox: link (optional)

Your Environment

Software Name/Version
Сodesandbox
Browser Chrome 91, FF 89
Operating System Windows 10

babich-a avatar Jul 05 '21 13:07 babich-a

Seems to be the same issue as #5943 (some dependencies use core-js >= 3.12

DokaRus avatar Jul 09 '21 15:07 DokaRus

Can be closed with https://github.com/codesandbox/codesandbox-client/issues/5943

babich-a avatar Nov 12 '21 03:11 babich-a