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

Error: Cannot find module 'lodash.camelcase' #102

Open
1oid opened this issue Apr 22, 2023 · 0 comments
Open

Error: Cannot find module 'lodash.camelcase' #102

1oid opened this issue Apr 22, 2023 · 0 comments

Comments

@1oid
Copy link

1oid commented Apr 22, 2023

install lib

npm install @grpc/proto-loader

add code into electron/main.ts

const protoLoader = require("@grpc/proto-loader")
console.log(protoLoader)

has error

 Compiling Renderer CodeApp threw an error during load
Error: Cannot find module 'lodash.camelcase'
    at webpackMissingModule (/Users/loid/WebstormProjects/react-electron-dev/.webpack/main/index.js:31:88)
    at Object../node_modules/.store/@grpc+proto-loader@0.7.6/node_modules/@grpc/proto-loader/build/src/index.js (/Users/loid/WebstormProjects/react-electron-dev/.webpack/main/index.js:31:179)
    at __webpack_require__ (/Users/loid/WebstormProjects/react-electron-dev/.webpack/main/index.js:444:41)
    at /Users/loid/WebstormProjects/react-electron-dev/.webpack/main/index.js:515:19
    at /Users/loid/WebstormProjects/react-electron-dev/.webpack/main/index.js:585:3
    at Object.<anonymous> (/Users/loid/WebstormProjects/react-electron-dev/.webpack/main/index.js:588:12)
    at Module._compile (internal/modules/cjs/loader.js:1078:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
    at Module.load (internal/modules/cjs/loader.js:935:32)
    at Module._load (internal/modules/cjs/loader.js:776:14)
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