Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM Package does not include built files #2

Closed
anguspiv opened this issue Nov 3, 2020 · 1 comment
Closed

NPM Package does not include built files #2

anguspiv opened this issue Nov 3, 2020 · 1 comment

Comments

@anguspiv
Copy link

anguspiv commented Nov 3, 2020

Installed the package via npm npm install preciselyapis-client

when we tried to run the node script we would get this error:

{
    "errorType": "Runtime.ImportModuleError",
    "errorMessage": "Error: Cannot find module 'preciselyapis-client'\nRequire stack:\n- /var/task/app.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js",
    "stack": [
        "Runtime.ImportModuleError: Error: Cannot find module 'preciselyapis-client'",
        "Require stack:",
        "- /var/task/app.js",
        "- /var/runtime/UserFunction.js",
        "- /var/runtime/index.js",
        "    at _loadUserApp (/var/runtime/UserFunction.js:100:13)",
        "    at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)",
        "    at Object.<anonymous> (/var/runtime/index.js:43:30)",
        "    at Module._compile (internal/modules/cjs/loader.js:1137:30)",
        "    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)",
        "    at Module.load (internal/modules/cjs/loader.js:985:32)",
        "    at Function.Module._load (internal/modules/cjs/loader.js:878:14)",
        "    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)",
        "    at internal/main/run_main_module.js:17:47"
    ]
}

after debugging we noticed that package.json has main pointing to api.js but that file is not included as part of the npm package.

We were able to get around the issue by downloading the github repo, manually building the files and copying them into our project.

Please include the built files as part of the published npm package.

@murlimjha
Copy link
Contributor

Included the package api.js and fixed the aforementioned issue.

Please use the updated SDK.

For any info, please let us know.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants