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

[Task] Add error for module is not in cache '@lenra/app' #58

Open
shiipou opened this issue Oct 24, 2023 · 0 comments
Open

[Task] Add error for module is not in cache '@lenra/app' #58

shiipou opened this issue Oct 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@shiipou
Copy link

shiipou commented Oct 24, 2023

What should be done

Add a better error message when this error happen. You can try it using this code : https://github.com/lenra-io/app-stat-us/tree/ae4d8a0e3dfeca3e508015c344491ee8adbd1f4f

Indexing /home/shiishii/dev/github.com/lenra-io/app-stat-us/src/views/pages/post.js
node:internal/modules/esm/module_job:131
        this.module.instantiate();
                    ^
Error: request for '@lenra/app' is not in cache
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:131:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:213:5)
    at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
    at async JavaScriptIndexer.indexFile (file:///home/shiishii/dev/github.com/lenra-io/app-stat-us/node_modules/@lenra/app/dist/lib/indexer.js:76:24)
    at async Promise.all (index 2)
    at async JavaScriptIndexer.indexDirectory (file:///home/shiishii/dev/github.com/lenra-io/app-stat-us/node_modules/@lenra/app/dist/lib/indexer.js:72:17)
    at async Promise.all (index 1)
    at async JavaScriptIndexer.indexDirectory (file:///home/shiishii/dev/github.com/lenra-io/app-stat-us/node_modules/@lenra/app/dist/lib/indexer.js:72:17)
    at async JavaScriptIndexer.index (file:///home/shiishii/dev/github.com/lenra-io/app-stat-us/node_modules/@lenra/app/dist/lib/indexer.js:46:23)
    at async Indexer.index (file:///home/shiishii/dev/github.com/lenra-io/app-stat-us/node_modules/@lenra/app/dist/lib/indexer.js:121:9) {
  code: 'ERR_VM_MODULE_LINK_FAILURE'
}
@shiipou shiipou added the enhancement New feature or request label Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🟤 Can wait
Development

No branches or pull requests

1 participant