-
Notifications
You must be signed in to change notification settings - Fork 182
Closed
Labels
Description
I am using Yarn to download this package:
yarn add @material/material-color-utilities
After fixing #29 I got these error:
$ C:\files\src\hct\node_modules\.bin\ts-node-esm .\index.ts
C:\files\src\hct\node_modules\ts-node\dist-raw\node-esm-resolve-implementation.js:383
throw new ERR_MODULE_NOT_FOUND(
^
CustomError: Cannot find module 'C:\files\src\hct\node_modules\@material\material-color-utilities\dist\blend\blend' imported from C:\files\src\hct\node_modules\@material\material-color-utilities\dist\index.js
at finalizeResolution (C:\files\src\hct\node_modules\ts-node\dist-raw\node-esm-resolve-implementation.js:383:11)
at moduleResolve (C:\files\src\hct\node_modules\ts-node\dist-raw\node-esm-resolve-implementation.js:818:10)
at Object.defaultResolve (C:\files\src\hct\node_modules\ts-node\dist-raw\node-esm-resolve-implementation.js:929:11)
at C:\files\src\hct\node_modules\ts-node\src\esm.ts:228:33
at entrypointFallback (C:\files\src\hct\node_modules\ts-node\src\esm.ts:179:34)
at resolve (C:\files\src\hct\node_modules\ts-node\src\esm.ts:227:12)
at resolve (C:\files\src\hct\node_modules\ts-node\src\child\child-loader.ts:19:39)
at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
When I checking dist\index.js
:
export * from './blend/blend';
I made some changes to this:
export * from './blend/blend.js';
After I adding .js
to all imports. It works perfect to me.
More info: export - JavaScript | MDN
kriswuollett