DreierF/ts-closure-library

Module not found: Error: Package path `./lib/uri/utils` is not exported from package.json

DilipSarkarVerily opened this issue · 0 comments

We have imported import {getPath} from 'ts-closure-library/lib/uri/utils'; from the library iin our application but getting the bellow error during ng build

Error: Module not found: Error: Package path ./lib/uri/utils is not exported from package .../ui/node_modules/ts-closure-library (see exports field in .../ui/node_modules/ts-closure-library/package.json)

When we added "./lib/uri/utils": "./lib/uri/utils.js", into the exports list of package.json, it seems to work fine.

Tried to create a PR but don't have write access. Can this change be added into the repo?

Thanks, Dilip