Skip to content

source map error #80

@bijay-karki

Description

@bijay-karki

Creating an optimized production build...
Compiled with warnings.

Failed to parse source map from '..\node_modules\arc\src\arc.ts' file: Error: ENOENT: no such file or directory, open '..\node_modules\arc\src\arc.ts'

Failed to parse source map from '\node_modules\arc\src\coord.ts' file: Error: ENOENT: no such file or directory, open '\node_modules\arc\src\coord.ts'

Failed to parse source map from '\node_modules\arc\src\great-circle.ts' file: Error: ENOENT: no such file or directory, open '\node_modules\arc\src\great-circle.ts'

Failed to parse source map from '\node_modules\arc\src\index.ts' file: Error: ENOENT: no such file or directory, open '\node_modules\arc\src\index.ts'

Failed to parse source map from '\node_modules\arc\src\line-string.ts' file: Error: ENOENT: no such file or directory, open '\node_modules\arc\src\line-string.ts'

Failed to parse source map from '\node_modules\arc\src\utils.ts' file: Error: ENOENT: no such file or directory, open '\node_modules\arc\src\utils.ts'

Issue :

tsconfig.json has "sourceMap": true, generating .js.map files that reference ../src/*.ts

[package.json] files field is ["dist/", "README.md", "LICENSE.md", "GDAL-LICENSE.md", "CHANGELOG.md"] — [src] is missing

So the published npm package includes source maps but not the source files they point to

Possible fix :

In package.json, add "src/" to the files array:

"files": [
"dist/",
"src/",
"README.md",
"LICENSE.md",
"GDAL-LICENSE.md",
"CHANGELOG.md"
],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions