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

js parsing error on deploy #48

Open
david-saeger opened this issue Dec 10, 2024 · 2 comments
Open

js parsing error on deploy #48

david-saeger opened this issue Dec 10, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@david-saeger
Copy link

Current behavior

When I try to deploy I get a JS parsing error

 Error: JS parsing error(s), could not automatically determine dependencies
File: /Users/xxx/projects/xxx/build/server/index.cjs
TypeError: dep.includes is not a function
    at /Users/xxx/projects/pvq-remix/node_modules/@architect/hydrate/src/actions/autoinstall/node/find-lambda-deps.js:69:13
    at Array.map (<anonymous>)
    at findLambdaDeps (/Users/xxx/projects/xxx/node_modules/@architect/hydrate/src/actions/autoinstall/node/find-lambda-deps.js:68:15)
    at /Users/xxx/projects/pvq-remix/node_modules/@architect/hydrate/src/actions/autoinstall/node/get-lambda-deps.js:23:22
    at Array.forEach (<anonymous>)
    at getDirDeps (/Users/xxx/projects/pvq-remix/node_modules/@architect/hydrate/src/actions/autoinstall/node/get-lambda-deps.js:21:9)
    at /Users/xxx/projects/xxx/node_modules/@architect/hydrate/src/actions/autoinstall/node/index.js:76:20
    at Array.forEach (<anonymous>)
    at treeshakeNode (/Users/xxx/projects/pvq-remix/node_modules/@architect/hydrate/src/actions/autoinstall/node/index.js:67:12)
    at Object.autoinstaller [as autoinstall] (/Users/xxx/projects/pvq-remix/node_modules/@architect/hydrate/src/actions/autoinstall/index.js:25:23)

Expected behavior

I expect to deploy without this error

Steps to reproduce

npx arc deploy

Environment

MacBook Pro Apple M1 Pro

@david-saeger david-saeger added the bug Something isn't working label Dec 10, 2024
@lpsinger
Copy link
Member

@dakota002, would you please update this repository to bring it in line with versions of dependencies in https://github.com/nasa-gcn/gcn.nasa.gov?

@dakota002 dakota002 self-assigned this Dec 11, 2024
@dakota002
Copy link
Contributor

dakota002 commented Dec 11, 2024

@david-saeger do you get the same error message if you try to deploy your app with the deploy command defined in the package.json file:

npm run deploy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants