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

Failed 500 Internal Server Error in the Deno #565

Closed
fwqaaq opened this issue Aug 18, 2023 · 4 comments
Closed

Failed 500 Internal Server Error in the Deno #565

fwqaaq opened this issue Aug 18, 2023 · 4 comments

Comments

@fwqaaq
Copy link

fwqaaq commented Aug 18, 2023

Hey, bro, I got the following Error When I used the examples on your website.

It seems that this is caused by a lack of resources in the server.

error: Import 'https://unpkg.com/napi-wasm@1.1.0/index.mjs?module' failed: 500 Internal Server Error
    at https://unpkg.com/lightningcss-wasm@1.21.5/index.mjs?module:1:35
@devongovett
Copy link
Member

Maybe unpkg had an outage, but looks fine now.

@fwqaaq
Copy link
Author

fwqaaq commented Aug 20, 2023

Maybe unpkg had an outage, but looks fine now.

@devongovett That doesn't seem useful to me. The following errors appeared when I opened the unpkg link.

SyntaxError: unknown: Support for the experimental syntax 'classProperties' isn't currently enabled (32:10):

  30 | 
  31 | export class Environment {
> 32 |   scopes = [];
     |          ^
  33 |   referenceId = 1;
  34 |   references = new Map();
  35 |   deferred = [null];

Add @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the 'plugins' section of your Babel config to enable transformation.

undefined

@Lunarequest
Copy link

this is still true, I'm not sure why this was closed with 0 checks

@fwqaaq
Copy link
Author

fwqaaq commented Sep 14, 2023

this is still true, I'm not sure why this was closed with 0 checks

Yeah, and it's still that the way now. Maybe you can use https://esm.sh/lightningcss-wasm@1.21.8

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

3 participants