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

Module does not provide an export named ‘ComputeEngine’ #234

Closed
thuongvovan opened this issue Mar 20, 2025 · 2 comments
Closed

Module does not provide an export named ‘ComputeEngine’ #234

thuongvovan opened this issue Mar 20, 2025 · 2 comments

Comments

@thuongvovan
Copy link

Please follow the template below.
If you don't, your issue may be closed without being addressed.

Include code fragments or CodePen.io links to illustrate the issue. Do not include screenshots of code.
Sorry. Sign Up and Log In to CodePen is unavailable now

If you get a runtime or TypeScript error, copy the text of the error message, from the JavaScript console, for example. Do not include a screenshot of the error message.

Do not include screenshots of code, error messages or LaTeX.

If the issue is related to the documentation on cortexjs.io or the behavior of cortexjs.io, please report it here: https://github.com/cortex-js/cortexjs.io/issues

Description

The module import fails because the requested module does not provide a named export “ComputeEngine”.

Steps to Reproduce

import { ComputeEngine } from "https://unpkg.com/@cortex-js/compute-engine?module";

const ce = new ComputeEngine();
ce.parse("e^{i\\pi}").evaluate().print();
// Expected output: "-1"

Actual Result

The code throws an error

Uncaught SyntaxError: The requested module 'https://unpkg.com/@cortex-js/compute-engine?module' does not provide an export named 'ComputeEngine'

Expected Result

(Required) What did you expect to happen instead? It may be obvious to you what should have happened, but if you don't state it explicitly it may not be obvious to others.

Environment

Is this a regression: did it use to work in a previous version?
• Browser: (Chrome, Edge, Safari)
• OS: (macOS, IOS)
• Module Source: https://unpkg.com/@cortex-js/compute-engine?module

@arnog
Copy link
Member

arnog commented Mar 20, 2025

The unpkg.com CDN seems to be having some issues. I suggest considering using another CDN. For example:

import { ComputeEngine } from "https://esm.run/@cortex-js/compute-engine";

@arnog
Copy link
Member

arnog commented Apr 4, 2025

No activity in two weeks. Closing.

@arnog arnog closed this as completed Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants