-
-
Notifications
You must be signed in to change notification settings - Fork 954
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
const pkg = require('./package'); #266
Comments
|
I leave that here because it can help people facing similar issue. I was having an issue with the
I found that the issue was caused by webpack not resolving the extension automatically, so I added this to my
so now I can omit the Hope this helps someone :) |
@hugohil Sir, you helped me a lot with this, i was having this './package' error, and your fix solved it! |
i am facing same issue, but i didnt have webpack file in my project, so please give appropriate solution |
v6.7.1
const pkg = require('./package');
this line is causing issue. "package" is not defined in package.json
ERROR in ./
/is-online//is-reachable/~/got/index.jsModule not found: Error: Cannot resolve 'file' or 'directory' ./package in /Users/alan/Desktop/Electron/app/node_modules/is-online/node_modules/is-reachable/node_modules/got
resolve file
/Users/alan/Desktop/Electron/app/node_modules/is-online/node_modules/is-reachable/node_modules/got/package doesn't exist
/Users/alan/Desktop/Electron/app/node_modules/is-online/node_modules/is-reachable/node_modules/got/package.js doesn't exist
/Users/alan/Desktop/Electron/app/node_modules/is-online/node_modules/is-reachable/node_modules/got/package.jsx doesn't exist
resolve directory
The text was updated successfully, but these errors were encountered: