Nacho Ruiz Martin
12/15/2023, 1:21 PM.mjs
output file of my module contains types that I havenât marked with @JsExport?
More info in thread.Nacho Ruiz Martin
12/15/2023, 1:24 PM.mjs
file, named spoiless-root.mjs
contains a huge list of imports on the top that itâs trying to import from itself:
//... Many others...
get_commonDataModule2u77pvjm58352 as get_commonDataModule,
get_deepLinksModule3esna0a3drdgs as get_deepLinksModule,
get_pushDataModule2jv5av0b2jnhu as get_pushDataModule,
get_lifecycleModule2m2wpb3mye1uh as get_lifecycleModule,
UserRepository1qgsoxuwadb1q as UserRepository,
DiTokens_getInstance19at4048hu77e as DiTokens_getInstance,
jsExport131nsgrfmqfh7 as jsExport,
} from './spoiless-root.mjs';
This is crashing on typescript, stating:
Attempted import error: 'X' is not exported from './spoiless-root.mjs' (imported as 'Y').
Nacho Ruiz Martin
12/15/2023, 1:24 PMArtem Kobzar
12/15/2023, 1:41 PM2m2wpb3mye1uh
.Nacho Ruiz Martin
12/15/2023, 1:43 PMjs(IR) {
moduleName = "spoiless-root"
browser()
binaries.library()
useEsModules()
generateTypeScriptDefinitions()
}
Artem Kobzar
12/15/2023, 2:53 PMNacho Ruiz Martin
12/15/2023, 2:57 PMNacho Ruiz Martin
12/17/2023, 7:37 AMNacho Ruiz Martin
12/18/2023, 9:10 AMmoduleName
, hence the import to âitselfâ, it wasnât itself, it was trying to import another module but the naming was the same.Artem Kobzar
12/18/2023, 12:50 PM