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

Build folder is empty and compatibility with phone apps #32

Open
snyde875 opened this issue May 16, 2021 · 0 comments
Open

Build folder is empty and compatibility with phone apps #32

snyde875 opened this issue May 16, 2021 · 0 comments

Comments

@snyde875
Copy link

snyde875 commented May 16, 2021

When trying to run a node.js file that requires mmap-io, I get the following error message:

node:internal/modules/cjs/loader:922
  throw err;
  ^

Error: Cannot find module '../build/Release/mmap-io'
Require stack:
- D:\Desktop\projects\f1_app\node_modules\mmap-io\dist\mmap-io.js
- D:\Desktop\projects\f1_app\node_modules\mmap-io\mmap-io.js
- D:\Desktop\projects\f1_app\temp.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:15)
    at Function.Module._load (node:internal/modules/cjs/loader:763:27)
    at Module.require (node:internal/modules/cjs/loader:991:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.<anonymous> (D:\Desktop\projects\f1_app\node_modules\mmap-io\dist\mmap-io.js:3:23)
    at Module._compile (node:internal/modules/cjs/loader:1102:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1131:10)
    at Module.load (node:internal/modules/cjs/loader:967:32)
    at Function.Module._load (node:internal/modules/cjs/loader:807:14)
    at Module.require (node:internal/modules/cjs/loader:991:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'D:\\Desktop\\projects\\f1_app\\node_modules\\mmap-io\\dist\\mmap-io.js',
    'D:\\Desktop\\projects\\f1_app\\node_modules\\mmap-io\\mmap-io.js',
    'D:\\Desktop\\projects\\f1_app\\temp.js'
  ]
}

When I went into the node-modules folder and located mmap-io, I saw that the build folder was empty. I did install mmap-io on a different machine but with the same OS (although this OS had WSL2) and it worked, so I'm not sure why the build folder would be empty.

In regards to compatibility, I was hoping I could use mmap-io in a phone app that must parse data from a very large text file; does mmap-io work with React/Expo-cli?

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