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

Seeder doesn't work with webpack hot reload #16

Open
fdorantesm opened this issue Apr 22, 2021 · 0 comments
Open

Seeder doesn't work with webpack hot reload #16

fdorantesm opened this issue Apr 22, 2021 · 0 comments

Comments

@fdorantesm
Copy link

Webpack's bundle block using, can't use ts-node or typescript to build.

$ node src/seeder.js
internal/modules/cjs/loader.js:969
  throw err;
  ^

Error: Cannot find module './seeds/account.seeder'
Require stack:
- /Volumes/dev/organic/src/seeder.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
    at Function.Module._load (internal/modules/cjs/loader.js:842:27)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/Volumes/dev/organic/src/seeder.js:4:24)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/Volumes/dev/organic/src/seeder.js' ]
}

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

1 participant