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

ReferenceError: self is not defined with DEV=true and ESM #624

Closed
gustawdaniel opened this issue Sep 7, 2023 · 0 comments · Fixed by #626
Closed

ReferenceError: self is not defined with DEV=true and ESM #624

gustawdaniel opened this issue Sep 7, 2023 · 0 comments · Fixed by #626
Labels

Comments

@gustawdaniel
Copy link

I have error:

DEV=true npm run dev

> aws-to-es@1.0.0 dev
> tsx src/index.tsx

/home/daniel/pro/external-providers-gateway-2.0/node_modules/react-devtools-core/dist/backend.js:10
})(self, () => {
   ^


ReferenceError: self is not defined
    at agent (/home/daniel/pro/external-providers-gateway-2.0/node_modules/react-devtools-core/dist/backend.js:10:4)
    at Object.<anonymous> (/home/daniel/pro/external-providers-gateway-2.0/node_modules/react-devtools-core/dist/backend.js:17011:2)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Object.F (/home/daniel/pro/external-providers-gateway-2.0/node_modules/@esbuild-kit/cjs-loader/dist/index.js:1:941)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at cjsLoader (node:internal/modules/esm/translators:282:14)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:233:7)
    at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:308:24)
    at <anonymous> (/home/daniel/pro/external-providers-gateway-2.0/node_modules/ink/build/reconciler.js:13:9)

Node.js v20.6.0
npm ERR! Lifecycle script `dev` failed with error: 
npm ERR! Error: command failed 
npm ERR!   in workspace: aws-to-es@1.0.0 
npm ERR!   at location: /home/daniel/pro/external-providers-gateway-2.0/apps/aws-to-es

https://stackoverflow.com/questions/66096260/why-am-i-getting-referenceerror-self-is-not-defined-when-i-import-a-client-side

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

Successfully merging a pull request may close this issue.

2 participants