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

Library can't find module core-js/shim from client.js #6

Open
Gila-Johanna-Hofmann opened this issue Jul 19, 2023 · 1 comment
Open

Comments

@Gila-Johanna-Hofmann
Copy link

When running code as is, the following error occurs:

at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (C:\Users\Gila.Hofmann\Documents\Dev\holistic\TestVSCode\node_modules\mockaroo\client.js:33:19)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '...\\node_modules\\mockaroo\\client.js',
    '...\\node_modules\\mockaroo\\index.js',
    '...\\test.js'

Deleting the import in line 33 from client.js var import_shim = require("core-js/shim"); solves the error.

@mutairibassam
Copy link

reference #7

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