Questions tagged [swc]
An Adobe SWC file is a package of precompiled Flash symbols and ActionScript code that allows a Flash or Flex developer to distribute classes and assets, or to avoid recompiling symbols and code that will not change. Please, do not use this tag for questions related to the SWC JavaScript compiler (use [swc-compiler] instead).
290
questions
3
votes
0
answers
459
views
Make Next.js 13 application run in old browser like Chrome 33
I need to create a Next.js application which uses Next 14+ that runs on a Chrome 33 browser which is supposed to support ES5 only. Given that some packages inside Next dependency like (@next/font) ...
0
votes
0
answers
403
views
Issue with Transpiling Packages in a Turborepo Project with Nest + SWC + pnpm (SyntaxError: Unexpected token 'export')
I'm trying to create an internal package in my turborepo project that uses pnpm as the package manager. The shared package follows the exact same setup as provided in the turborepo documentation, and ...
3
votes
0
answers
233
views
Expression expected in index.js after switching to swc-loader
i have to change loader in my webpack.config to swc-loader and i'm using react-app-rewired, i have added the following code to config-overrides.js :
module.exports = function override(config, env) {
...
0
votes
0
answers
38
views
Cannot find module '../../../../lib/esm/index.js'
In file /atoms/overlays/Sheet/styles
I do import {maxHeight} from '.'
And causing the following error
Error: Cannot find module '../../../../lib/esm/index.js'
Require stack:
- /Users/x/Desktop/project/...
1
vote
0
answers
390
views
How Next.js support ESM and the building process?
Next.js 12 supports native ESM support. I would like to understand how Next.js supports ESM and the bundling process. The research process has not been smooth, so I would appreciate it if you could ...
1
vote
1
answer
3k
views
Nest JS and Typescript with SWC is not compiling dist folder correctly
Hi all I'm getting this error. I have surf through all the internet but haven't found any useful solution and even the GitHub discussion was not even useful for me on this topic below are the some ...
-2
votes
2
answers
571
views
How to override the CSS default properties of Material UI on React? [closed]
I have some React project and I'm using the 'Table' component from Maerial UI.
That table with her components (TableHead, TableCell, TableRow etc.) have thier default CSS properties.
But when I'm ...
4
votes
2
answers
1k
views
Turborepo internal package WITHOUT Next.js
I'm trying to create an internal package in a turborepo project. The shared package follows the same setup as the example, and it works as is in the Vite frontend project. However, when importing that ...
0
votes
0
answers
61
views
Nightwatch SWC core error when running a test
After using the Nightwatch installer to add Nightwatch to my existing folder, I encountered an error while running the sample tests.
I tried uninstalling and reinstalling 'swc' and even updated it to ...
0
votes
0
answers
16
views
how can i resolve the native binary dependence in VS Code plugin development , such as swc and esbuid
I'm writting a VS Code plugin.
Some command is compile the code and bundle js. I use esbuid and swc in my case.
I'm not sure that if should I bundle the native dependences in my plugin,or put them as ...
7
votes
4
answers
3k
views
nestjs swc Error: Cannot find module 'path-to-project/src/app.module'
When I installed the swc, I get this Error: Cannot find module 'path-to-project/src/app.module'
I'm using:
nodejs: 18.17.1
nestjs: 10.1.16
@swc/cli: 0.1.62
@swc/core: 1.3.81
"dist/main.js"
...
0
votes
0
answers
134
views
Combining Babel Library in SWC Next.js: Integrate external Babel-dependent package while preserving SWC compilation
In my Next.js project, the primary compiler is SWC. However, I have a component that relies on an external library compiled with Babel. Is it feasible to configure Next.js to use Babel exclusively for ...
3
votes
0
answers
914
views
SWC is not adding extension on imports
I'm working with SWC compiler for the first time in a project. I'm using it to compile my typescript files in /src to javascript files in /dist.
The structure of the project is something like this:
| -...
0
votes
0
answers
31
views
Vercel not deploying
ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for @next/[email protected]: wanted {"os":"win32","arch":"x64"} (current: {"os":&...
1
vote
3
answers
556
views
TypeError: Invalid schema configuration: `admin` is not a valid type at path `ADMIN`, NestJs mongodb with SWC
I'm first time working with SWC , and I'm facing this error only with SWC compiler. Without SWC everything works fine
Error
throw new TypeError(Invalid schema configuration: \${val}` is not ` +
^
...