일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
- error
- 기준
- solidity
- node.js
- graphQL
- JavaScript
- Redux
- 삶
- blockchain
- CLASS
- tailwindcss
- middleware
- Ethereum
- HTML
- CSS
- express.js
- built in object
- bitcoin
- hardhat
- evm
- API
- useState
- SSR
- concept
- typeScript
- Props
- Interface
- web
- nextJS
- REACT
- Today
- Total
목록CommonJS (2)
ReasonJun
What happened? In the case of ts-node, ts was compiled using the commonJS method. Therefore, an error occurs when you try to run a ts file with ts-node in the app or src subfolder of nextjs, which is compiled with esNext. Error : https://github.com/TypeStrong/ts-node/issues/935 `ts-node` fails when ES Modules are in the dependency graph in Node.js 13+ · Issue #935 · TypeStrong/ts-node I basicall..
In TypeScript, a module is a way to organize code into separate files and encapsulate its functionality. Modules allow you to define and export reusable pieces of code, such as classes, functions, interfaces, or variables, and import them in other parts of your program. TypeScript supports two main module systems: CommonJS and ECMAScript (ES) modules. CommonJS Modules: CommonJS modules are prima..