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

Unable to run maizzle serve (cannot find module 'bootstrap') #58

Closed
olafghanizadeh opened this issue Jul 27, 2020 · 8 comments
Closed

Comments

@olafghanizadeh
Copy link

I am trying to run Maizzle for local dev, but I am unable to. Node version is 12.16.3

Error:

olafg@Olafs-MacBook-Pro maizzle % maizzle serve           
/Users/olafg/.config/yarn/global/node_modules/@maizzle/cli/src/index.js:32
        throw err
        ^

Error: Cannot find module './bootstrap'
Require stack:
- /Users/olafg/dev/rem/maizzle/noop.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:957:15)
    at resolveFileName (/Users/olafg/.config/yarn/global/node_modules/resolve-from/index.js:29:39)
    at resolveFrom (/Users/olafg/.config/yarn/global/node_modules/resolve-from/index.js:43:9)
    at module.exports (/Users/olafg/.config/yarn/global/node_modules/resolve-from/index.js:46:47)
    at module.exports (/Users/olafg/.config/yarn/global/node_modules/import-from/index.js:4:55)
    at module.exports (/Users/olafg/.config/yarn/global/node_modules/import-cwd/index.js:4:30)
    at Command.<anonymous> (/Users/olafg/.config/yarn/global/node_modules/@maizzle/cli/src/index.js:29:25)
    at Command.listener (/Users/olafg/.config/yarn/global/node_modules/commander/index.js:370:29)
    at Command.emit (events.js:310:20)
    at Command.parseArgs (/Users/olafg/.config/yarn/global/node_modules/commander/index.js:892:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/Users/olafg/dev/rem/maizzle/noop.js' ]
}
@cossssmin
Copy link
Member

You're using an old Maizzle CLI version, you need to update the CLI tool (latest version is 1.0.1):

npm i -g @maizzle/cli

You can then use this command to check what version you have installed - should be 1.0.1:

npm list -g @maizzle/cli

@olafghanizadeh
Copy link
Author

olafghanizadeh commented Jul 27, 2020

I tried reinstalling Maizzle before opening the issue, so this does not fix it.

Error persists after following above instructions:

olafg@Olafs-MacBook-Pro rem % npm list -g @maizzle/cli
/Users/olafg/.nvm/versions/node/v12.16.3/lib
└── @maizzle/cli@1.0.2 

@cossssmin
Copy link
Member

Update your Maizzle CLI first (npm install -g @maizzle/cli), as I've just published a maintenance release (not related to your issue, but you should run the latest CLI version). Cool, I see you've already updated the CLI 👍

Run maizzle -v (while inside your Maizzle project directory) and let me know what it says.

@olafghanizadeh
Copy link
Author

I used maizzle new to create a project. Running the above command in that folder gives:


olafg@Olafs-MacBook-Pro maizzle % maizzle -v
Framework v1.2.1
CLI v0.4.0

@cossssmin
Copy link
Member

You're using v0.4.0 of the Maizzle CLI tool, make sure you have the latest version (v1.0.2) installed globally.

@olafghanizadeh
Copy link
Author

I see this conflict as well, but why does:

olafg@Olafs-MacBook-Pro maizzle % npm list -g @maizzle/cli
/Users/olafg/.nvm/versions/node/v12.16.3/lib
└── @maizzle/cli@1.0.2 

While

olafg@Olafs-MacBook-Pro maizzle % maizzle -v
Framework v1.2.1
CLI v0.4.0

@cossssmin
Copy link
Member

Not sure, but maybe you have installed it locally in that project? What does it say if you run maizzle -v outside the project folder?

@olafghanizadeh
Copy link
Author

Returns CLI v0.4.0 as well.

Strange, perhaps the old version is hanging on in some cache?

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

2 participants