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

Fix the errors related to 'require' #62

Closed
kikkupico opened this issue Mar 9, 2022 · 1 comment
Closed

Fix the errors related to 'require' #62

kikkupico opened this issue Mar 9, 2022 · 1 comment

Comments

@kikkupico
Copy link
Contributor

Every run of the workflow, even when successful, shows this error -

(node:1523) Warning: require() of ES modules is not supported.
[18](https://github.com/kikkupico/samp-home-food-dev-2/pull/6/checks#step:3:18)
require() of /home/runner/work/_actions/hasura/hasura-cloud-preview-apps/v0.1.4/dist/index.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
[19](https://github.com/kikkupico/samp-home-food-dev-2/pull/6/checks#step:3:19)
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/runner/work/_actions/hasura/hasura-cloud-preview-apps/v0.1.4/dist/package.json.

This distracts and confuses users especially when the workflow fails.

It should be fixed (by fixing the build config, most likely).

@wawhal
Copy link
Contributor

wawhal commented Apr 4, 2022

Closed in #65.

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