My email addresses are
<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="46323f36233525342f3632067368766874">[email protected]</a>
, <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d5a2b0b7a5b4b6bef8b6b9bc95e0fbe5fbe4">[email protected]</a>
, and <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a7d0c2c5d7c6c4cce7928990918995">[email protected]</a>
.
I attempted to utilize the new feature moduleResolution
with value bundler
from typescript@5
.
Moreover, I have set "type": "module"
in my package.json
file.
The values in my tsconfig.json
file are as follows:
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
I also configured a file named webpack.config.prod.ts
and attempted to build my application using
webpack --config ./webpack/webpack.config.prod.ts
.
However, I encountered an error message:
[webpack-cli] Failed to load '/myProject/webpack/webpack.config.prod.ts' config
Additionally,
[webpack-cli] TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /myProject/webpack/webpack.config.prod.ts
at new NodeError (node:internal/errors:393:5)
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:79:11)
at defaultGetFormat (node:internal/modules/esm/get_format:121:38)
at defaultLoad (node:internal/modules/esm/load:81:20)
at nextLoad (node:internal/modules/esm/loader:163:28)
at ESMLoader.load (node:internal/modules/esm/loader:605:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22)
at new ModuleJob (node:internal/modules/esm/module_job:63:26)
at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:480:17)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:434:34) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}