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

Remove type: module from package.json #99

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

jamacku
Copy link
Member

@jamacku jamacku commented Feb 21, 2024

ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and '/home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/dist/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
    at eval (eval at 9362 (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/node_modules/@vercel/ncc/dist/ncc/@@notfound.js:1:1), <anonymous>:1:1)
    at Object.9362 (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/node_modules/@vercel/ncc/dist/ncc/@@notfound.js:1:1)
    at __nccwpck_require__ (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/webpack/bootstrap:21:1)
    at Object.6474 (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/dist/index.js:36285:63)
    at __nccwpck_require__ (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/webpack/bootstrap:21:1)
    at Object.2768 (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/dist/index.js:31569:12)
    at __nccwpck_require__ (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/webpack/bootstrap:21:1)
    at file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/dist/index.js:35883:65
    at Function.__nccwpck_require__.a (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/webpack/runtime/async module:49:1)
    at Object.399 (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/dist/index.js:35878:21)

```js
ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and '/home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/dist/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
    at eval (eval at 9362 (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/node_modules/@vercel/ncc/dist/ncc/@@notfound.js:1:1), <anonymous>:1:1)
    at Object.9362 (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/node_modules/@vercel/ncc/dist/ncc/@@notfound.js:1:1)
    at __nccwpck_require__ (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/webpack/bootstrap:21:1)
    at Object.6474 (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/dist/index.js:36285:63)
    at __nccwpck_require__ (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/webpack/bootstrap:21:1)
    at Object.2768 (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/dist/index.js:31569:12)
    at __nccwpck_require__ (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/webpack/bootstrap:21:1)
    at file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/dist/index.js:35883:65
    at Function.__nccwpck_require__.a (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/webpack/runtime/async module:49:1)
    at Object.399 (file:///home/runner/work/_actions/jamacku/testing-farm-as-github-action/post/dist/index.js:35878:21)
```
@jamacku jamacku merged commit 310d629 into redhat-plumbers-in-action:main Feb 21, 2024
4 checks passed
@jamacku jamacku deleted the remove-module branch February 21, 2024 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant