JonathanWilbur / asn1-ts

ASN.1 TypeScript library, including codecs for Basic Encoding Rules (BER) and Distinguished Encoding Rules (DER).
MIT License
32 stars 6 forks source link

Cannot find module '../../../types/External' from 'decodeExternal.js' #7

Closed yoursunny closed 4 years ago

yoursunny commented 4 years ago

/dist/codecs/x690/decoders/decodeExternal.d.ts has a reference:

import External from "../../../types/External";

However, /dist/types directory only has an external.d.ts file. On a case sensitive filesystem such as ext4 used on Ubuntu, external.d.ts and External.d.ts are different files.

This causes build error:

Cannot find module '../../../types/External' from 'decodeExternal.js'

It seems that the source file in /source/types is correctly named as External.ts. Therefore, this is a publishing problem. I guess you are building the tarball on a case insensitive filesystem without clearing the cache. To fix this problem, delete output folder in your clone, and rebuild from a clean clone.

JonathanWilbur commented 4 years ago

Sorry about that! I changed the capitalization after initially creating the file. Thanks for reporting this! Version 2.9.1 should be fixed.