Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Error when using the CLI in a monorepo #14

Open
lffg opened this issue Jun 21, 2019 · 2 comments
Open

Error when using the CLI in a monorepo #14

lffg opened this issue Jun 21, 2019 · 2 comments

Comments

@lffg
Copy link

lffg commented Jun 21, 2019

Package version

2.0.8

Node.js and npm version

12.3.1 and 6.9.0

I get this error when using this package in a Yarn Monorepo:

image

I found that the problem lives in this line:

const ace = require(path.join(root, '/node_modules/@adonisjs/ace'))

Why don't you just require the package normally?

const ace = require('@adonisjs/ace')
@thetutlage
Copy link
Member

Want to help test the newer version with monorepos?

@lffg
Copy link
Author

lffg commented Nov 9, 2019

Yes, @thetutlage, I can help with that. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants