Replies: 4 comments 2 replies
-
If I extract swc config and put it in
Gives this result:
|
Beta Was this translation helpful? Give feedback.
-
Adding this code from the react example: {
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": true
},
"transform": {
"react": {
"pragma": "React.createElement",
"pragmaFrag": "React.Fragment",
"throwIfNamespace": true,
"development": true,
"useBuiltins": true
}
}
}
} Gave a slight change in output, but nothing I think is relevant:
|
Beta Was this translation helpful? Give feedback.
-
Trying this code from swc-project/jest#40 gave mostly the same error, but some times it crashed on prasing react in general [
{
"test": ".tsx?$",
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": true
},
"target": "es5",
"loose": false
}
},
{
"test": ".jsx?$",
"jsc": {
"parser": {
"syntax": "ecmascript",
"jsx": true,
"decorators": false,
"dynamicImport": false
}
}
}
] One of the unusual errors:
|
Beta Was this translation helpful? Give feedback.
-
Hitting this same wall right now with Spack.
{
"jsc": {
"parser": {
"syntax": "typescript"
}
},
"module": {
"type": "es6",
"strict": false,
"strictMode": true,
"lazy": false,
"noInterop": false
}
}
module.exports = {
entry: {
main: __dirname + '/src/index.ts'
},
output: {
path: __dirname + '/dist'
}
} outcome: 03:24:02 PM » npx spack
node:internal/process/promises:265
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: load_transformed failed
Caused by:
0: failed to analyze module
1: failed to resolve http from /Users/daniel/code/ud/devops/stats/node_modules/fastify/fastify.js
2: index not found] {
code: 'GenericFailure'
}
Node.js v17.4.0 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm trying out swc/spack, but I can't get anything to work (so I assume I'm doing something fundamentally wrong! Would love some ideas about how to fix it!
I have thei spack.config.js:
and this folder structure:
import React from '../../public/node_modules/react/index.js'
it stopps on a different file each time with the same error.So, how can/should I run swc/spack, or how can I specify which folder contains all my modules?
Thanks!
My error:
My versions:
Beta Was this translation helpful? Give feedback.
All reactions