Comments (7)
That's right. This is an issue with the dart2js compiler; we can't fix it in Sass.
from dart-sass.
same error,...
from dart-sass.
Met the same error
in this code
[email protected] / Node.js@21 / Win 11
from dart-sass.
Same here.
Error: Nuxt Build Error: Preprocessor dependency "sass" failed to load:
Cannot read properties of undefined (reading 'indexOf')
at node_modules/sass/sass.dart.js:116832:12
at Object.applyHooksTransformer (node_modules/sass/sass.dart.js:1863:14)
at Object.initHooks (node_modules/sass/sass.dart.js:1843:251)
at Object.initNativeDispatchContinue (node_modules/sass/sass.dart.js:1809:9)
at Object.initNativeDispatch (node_modules/sass/sass.dart.js:1803:9)
at Object.getNativeInterceptor (node_modules/sass/sass.dart.js:29308:13)
at Object.getInterceptor$x (node_modules/sass/sass.dart.js:29569:16)
at Object.set$compile$x (node_modules/sass/sass.dart.js:29636:16)
at Object.main (node_modules/sass/sass.dart.js:24401:9)
at main2 (node_modules/sass/sass.dart.js:26210:9)
at node_modules/sass/sass.dart.js:117902:7
at node_modules/sass/sass.dart.js:117881:7
at dartProgram (node_modules/sass/sass.dart.js:117896:5)
at _cliPkgExports.load (node_modules/sass/sass.dart.js:117904:3)
at Object.<anonymous> (node_modules/sass/sass.node.js:4:9)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1201:32)
at Module._load (node:internal/modules/cjs/loader:1017:12)
at Module.require (node:internal/modules/cjs/loader:1229:19)
at require (node:internal/modules/helpers:177:18)
at loadPreprocessor (node_modules/vite/dist/node/chunks/dep-bb8a8[339](https://github.com/Skyost/Agregation/actions/runs/6559774470/job/17816040333#step:6:340).js:39299:45)
at scss (node_modules/vite/dist/node/chunks/dep-bb8a8339.js:39[345](https://github.com/Skyost/Agregation/actions/runs/6559774470/job/17816040333#step:6:346):20)
at compileCSSPreprocessors (node_modules/vite/dist/node/chunks/dep-bb8a8339.js:38770:36)
at compileCSS (node_modules/vite/dist/node/chunks/dep-bb8a8339.js:38820:42)
at async Object.transform (node_modules/vite/dist/node/chunks/dep-bb8a8339.js:38300:56)
at async transform (node_modules/rollup/dist/es/shared/node-entry.js:24449:16)
at async ModuleLoader.addModuleSource (node_modules/rollup/dist/es/shared/node-entry.js:24649:30)
Error: Preprocessor dependency "sass" failed to load:
Cannot read properties of undefined (reading 'indexOf')
at loadPreprocessor (node_modules/vite/dist/node/chunks/dep-bb8a8339.js:39307:29)
at scss (node_modules/vite/dist/node/chunks/dep-bb8a8339.js:39345:20)
at compileCSSPreprocessors (node_modules/vite/dist/node/chunks/dep-bb8a8339.js:38770:36)
at compileCSS (node_modules/vite/dist/node/chunks/dep-bb8a8339.js:38820:42)
at async Object.transform (node_modules/vite/dist/node/chunks/dep-bb8a8339.js:38300:56)
at async transform (node_modules/rollup/dist/es/shared/node-entry.js:24449:16)
at async ModuleLoader.addModuleSource (node_modules/rollup/dist/es/shared/node-entry.js:24649:30)
from dart-sass.
from dart-sass.
@nex3 , can you explain why this is getting closed?
isn't this an issue that exists in node 21 and that needs fixing?
from dart-sass.
@stheine because of this I guess dart-lang/sdk#53784
from dart-sass.
Related Issues (20)
- Q&A: How to prevent color names being transformed to hex values HOT 2
- Dependency URLs with a `file` schema fail to resolve
- Standalone sass compiler: Can't find stylesheet to import HOT 1
- [feature request] Official Python bindings to replace `libsass-python` HOT 3
- box-shadow property not respecting strict unary operator with 0
- linux-musl 1.71.0 release builds are broken
- ESM export of `NodePackageImporter` is missing.
- Node package importer requires an entryPointDirectory in ESM HOT 1
- Deprecation message replaces underscores with hyphens HOT 2
- NodePackageImporter support for subpaths entry points without extensions HOT 8
- Build Errors with Latest Sass Version in GitHub Actions CI/CD Pipeline HOT 7
- Doesnt execute custom functions in renderSync HOT 1
- Node Package Importer can't find ESM entry point if args are provided HOT 1
- An alternate way to define inheritance by utilizing nesting HOT 3
- SCSS silently fails to compile lines beginning with `--` HOT 1
- Miscompilation when Using Sass and CSS Variables HOT 1
- Drop support for plain-CSS-like functions and mixins
- update flag doesn't work with absolute source paths HOT 2
- change in distribution format HOT 4
- Does sass encourage terrorism, kidnapping, murder and rape?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart-sass.