Comments (2)
Same issue here. The code examples in the docs are shown to use ESM import syntax, so that's a bit contradicting. I'm going to opt with ncc in the meantime.
from cli.
I also run into this issue every time I try out swc
, which is a few times now. I can't figure out how to use spack
in a project with "type": "module"
, so I always has to dismiss it as a viable option before I can even really try it.
After about a dozen attempts to adapt the demo config file with minimal changes, I'm still stuck with:
> npx spack --config "/Users/lgarron/Code/git/github.com/cubing/cubing.js/spack.config.cjs"
thread '<unnamed>' panicked at 'cannot access a scoped thread local variable without calling `set` first', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-1.0.1/src/lib.rs:168:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: panic detected] { code: 'GenericFailure' }
Node.js v19.7.0
For a lot of web development these days, it is quite feasible to work entirely with ESM code and no CommonJS. It would be really welcoming if that also applied to spack
.
from cli.
Related Issues (20)
- Chokidar watch options
- `spack` - Panic on arrays with 64 or more numbers
- Can Spack cli support watch mode
- Outdated dependencies causes 'vulnerabilities found' warnings HOT 5
- Currently not working on arm64, but easy to workaround/fix HOT 2
- spack size limitations
- `--ignore` and `--only` do not work HOT 10
- swc_ecma_lints E0554 `#![feature]` may not be used on the stable release channel HOT 6
- bin-wrapper uses bin-check (6 years old now) which uses execa 0.x that has security issues HOT 1
- Config output path name property does not work
- There is no reliable way to include/exclude files HOT 3
- It is recommended to redirect all messages to stderr HOT 1
- Add an option to process files in parallel with worker processes HOT 1
- NestJS SWC v0.1.64 Compile Error: 'Cannot read properties of undefined (reading 'length')' HOT 1
- Changed output directory structure in 0.2.2 HOT 9
- (Bug?) Outdir adds "baseUrl" to directory structure as of V0.3.0 HOT 3
- Feature Request: Provide CLI options via file
- Cannot read properties of undefined (reading 'stripLeadingPaths') HOT 1
- Verison `0.3.3` generates files with the `.undefined` extension HOT 4
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 cli.