babel-sublime: Error loading syntax file: 'Packages/Babel/JavaScript (Babel).sublime-syntax'

Hello, after update sublime I have new error: Error loading syntax file "Packages/Babel/JavaScript (Babel).sublime-syntax": Packages/Babel/JavaScript (Babel).sublime-syntax: no such target scope:source.js.css#at-keyframe-block-content image

And my syntax hasn’t definitions: image

My sublime version is: image

My OS version:

  • Ubuntu 16.04 LTS

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

Thanks.

ignored_packages: ["CSS", "JavaScript", "Vintage"]

This is the problem. The Babel syntax relies on the Styled Components syntax, which in turn relies on the core CSS syntax (as of v11). (I’m surprised that there is no separate error for the Styled Components syntax failing to load.)

The documentation doesn’t explicitly mention that the core CSS package is required, and I should add that to the docs.

Is there a particular reason that you’ve disabled the core CSS package? Making the new Styled Components syntax work without the core CSS package disabled would be complicated, but if there’s an real need for that then I can look into it.

If you didn’t explicitly disable it yourself, then I wonder if one of the packages you have installed automatically disables the core CSS package. That would be a weird thing for a package to do, but I’ve seen weirder.

That means that, somehow, the Styled Components syntax is not getting loaded. The only thing I can think of that would cause that is if you have the core CSS package set to ignored. Is that possible?