Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(main): fixes main refer to module (#223)
If main refers to the modules, it issues some Errors when using require. The following Error is fixed with it: ```sh node:internal/modules/cjs/loader:1111 throw new ERR_REQUIRE_ESM(filename, true); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /app/node_modules/datebook/dist/datebook.min.mjs not supported. Instead change the require of /app/node_modules/datebook/dist/datebook.min.mjs to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/app/calendarGen/calGenerator.js:5:20) at Object.<anonymous> (/app/index.js:4:24) { code: 'ERR_REQUIRE_ESM' } ``` This occurs when using es6 as ts target.
- Loading branch information