esmodules Questions

1

`#11 44.55 ERROR require() of ES Module /app/node_modules/string-width/index.js from /app/node_modules/wide-align/align.js not supported. #11 44.55 Instead change the require of index.js in /app/n...

1

Trying to migrate some old TypeScript code from CRA to Vite, and getting stuck on a problem with Vitest. The project has dependencies like this: my-project (ESM) depends on: lib1 (CJS) depends on...
Wrasse asked 18/9, 2023 at 10:12

2

Solved

I have a layer where the path of node_modules is nodejs/node14/node_modules. Using that layer, and I try to import a package in a Lambda function, say 'aws-cloudfront-sign', like this: import cfsig...
Desiderative asked 28/4, 2022 at 20:6

1

I am creating a private npm package to visualize the structure of a Vuejs project. d3 seems to be on of the best choices for a visualization, but I have problems to include it in my script. In the ...
Dolce asked 8/7, 2021 at 8:51
1

© 2022 - 2024 — McMap. All rights reserved.