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

Unable to import new Dart Sass 1.63.6 with +esm flag #18511

Open
3 tasks done
abhishiv opened this issue Jul 11, 2023 · 0 comments
Open
3 tasks done

Unable to import new Dart Sass 1.63.6 with +esm flag #18511

abhishiv opened this issue Jul 11, 2023 · 0 comments

Comments

@abhishiv
Copy link

abhishiv commented Jul 11, 2023

Description

Hello,

Sass just released their browser version, and the announcing blog post uses a jspm link. I tried to import it using jsdelivr, but for some reason it fails.

const sass = await import('https://jspm.dev/sass');
sass.compileString('a {color: #663399}');

It would be really great to have it working on jsdelivr as well!

const sass = await import('https://cdn.jsdelivr.net/npm/sass/+esm');
Uncaught TypeError: Cannot read properties of undefined (reading 'ListBase.E')
    at Object._Parser_handleIdentifier (sass.dart.js:3401:55)
    at Object._Parser_parse (sass.dart.js:3268:17)
    at Object._Universe_evalInEnvironment (sass.dart.js:2966:15)
    at e._eval$1 (sass.dart.js:29151:16)
    at e.toList$1$growable (sass.dart.js:31681:101)
    at e.toList$0 (sass.dart.js:31687:19)
    at Object.SourceFile$fromString (sass.dart.js:15127:76)
    at Object.SpanScanner$ (sass.dart.js:15841:16)
    at Object.ScssParser$0 (sass.dart.js:22572:18)
    at Object.BuiltInCallable$function0 (sass.dart.js:17118:76)

Affected jsDelivr links

https://cdn.jsdelivr.net/npm/sass@1.63.6/+esm

Response headers

Age: 24
Alt-Svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
Cache-Control: public, max-age=31536000, s-maxage=31536000, immutable
Date: Tue, 11 Jul 2023 10:23:37 GMT
Etag: W/"292093-aj0W8m7RyqIfizLRwcJ5e6l4o6g"
Vary: Accept-Encoding
X-Cache: HIT
X-Served-By: cache-del21724-DEL

Information

  • Device OS: All
  • Browser & Version: All

Requisites

  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
  • I checked the documentation to understand that the issue I am reporting is not normal behavior.
  • I understand that not filling out this template correctly will lead to the issue being closed.

Additional content

No response

@abhishiv abhishiv changed the title Unable to import new Dart Sass 1.63.6 Unable to import new Dart Sass 1.63.6 with +esm flag Jul 11, 2023
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