buildModuleUrl not exported in TypeScript
- Dominant language
- JavaScript
- Stars
- 15.7k
- Forks
- 3.9k
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 34
Description
Hello,
From Cesium 1.7
import { buildModuleUrl } from 'cesium';
leads to Module '"cesium"' has no exported member 'buildModuleUrl'
to fix it I've changed Cesium.d.ts :
// in the declare module "cesium" part
export function buildModuleUrl(value: string);
export namespace buildModuleUrl {
function setBaseUrl(value: string): void;
}
// after the declare module "cesium" part
declare module "cesium/Source/Core/buildModuleUrl" { import { buildModuleUrl } from 'cesium'; export default buildModuleUrl; }
thx
Contributor guide
Research direction
Start with Cesium.d.ts and the cesium/Source/Core/buildModuleUrl entry point named in the report. Check how buildModuleUrl and its setBaseUrl namespace are exposed in the package declarations, then verify that importing buildModuleUrl from cesium type-checks successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100