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

[edge] TypeError: Cannot read property 'rootDir' of undefined #3197

Closed
bovas85 opened this issue Apr 5, 2018 · 3 comments
Closed

[edge] TypeError: Cannot read property 'rootDir' of undefined #3197

bovas85 opened this issue Apr 5, 2018 · 3 comments

Comments

@bovas85
Copy link

bovas85 commented Apr 5, 2018

Version

[nuxt-edge]

Reproduction link

https://antilophia-vue.nakedtesting.com/

Steps to reproduce

Installed nuxt-edge but can't make it work. I have no rootDir setup and using now for deployment.

Running npm run dev or npm run build locally produces this error:

/Users/developer2/Desktop/antilophia/node_modules/nuxt-edge/bin/common/utils.js:24
  if (typeof options.rootDir !== 'string') {
                     ^

TypeError: Cannot read property 'rootDir' of undefined
    at exports.loadNuxtConfig.argv (/Users/developer2/Desktop/antilophia/node_modules/nuxt-edge/bin/common/utils.js:24:22)
    at Object.<anonymous> (/Users/developer2/Desktop/antilophia/node_modules/nuxt-edge/bin/nuxt-dev:55:20)
    at Module._compile (module.js:649:30)
    at Object.Module._extensions..js (module.js:660:10)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:501:12)
    at Function.Module._load (module.js:493:3)
    at Module.require (module.js:593:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/developer2/Desktop/antilophia/node_modules/nuxt-edge/bin/nuxt:43:1)
    at Module._compile (module.js:649:30)
    at Object.Module._extensions..js (module.js:660:10)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:501:12)
    at Function.Module._load (module.js:493:3)
    at Function.Module.runMain (module.js:690:10)
    at startup (bootstrap_node.js:194:16)
    at bootstrap_node.js:666:3

What is expected ?

it builds the project folders

What is actually happening?

it produces an error

This bug report is available on Nuxt.js community (#c6857)
@ghost ghost added the cmty:bug-report label Apr 5, 2018
@bovas85 bovas85 changed the title TypeError: Cannot read property 'rootDir' of undefined [edge] TypeError: Cannot read property 'rootDir' of undefined Apr 5, 2018
pi0 pushed a commit that referenced this issue Apr 5, 2018
@Imanullah
Copy link

updated and fixed

@bovas85
Copy link
Author

bovas85 commented Apr 5, 2018

Thanks, confirmed :)

@bovas85 bovas85 closed this as completed Apr 5, 2018
@Atinux Atinux added this to Done in Bugs 🐞 Aug 8, 2018
@lock
Copy link

lock bot commented Nov 2, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Bugs 🐞
  
Fixed
Development

No branches or pull requests

3 participants