Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

require is not defined #322

Open
tapion opened this issue Sep 9, 2020 · 0 comments
Open

require is not defined #322

tapion opened this issue Sep 9, 2020 · 0 comments

Comments

@tapion
Copy link

tapion commented Sep 9, 2020

Screen Shot 2020-09-08 at 10 01 29 PM

Steps to reproduce

Tell us about your environment:

  • ndb version: 6.14.5
  • Platform / OS version: MacOS Catalina 10.15.5
  • Node.js version: 13.1.0

What steps will reproduce the problem?

  1. I put a breakpoint in my code to show variables
  2. When I edit my code within the chromium window, the system doesn't reload the script, it says that "require is not defined".

What is the expected result?
I expect that the script reloads with my changes
When I run the debugging process I don't see that all my code is wrapped by the global function in node, like in this example from internet
Screen Shot 2020-09-08 at 10 06 17 PM

All code that I'm debugging is without that function, maybe this is the problem, but I don't know how to fix it.

What happens instead?
The system doesn't reload the changes then I must close the debugging windows and restart it

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

No branches or pull requests

1 participant