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

Plugin fails to start: Error: Couldn't find preset "es2015" relative to directory "/home/gableroux" #18

Closed
GabLeRoux opened this issue Jun 13, 2016 · 2 comments

Comments

@GabLeRoux
Copy link

GabLeRoux commented Jun 13, 2016

Error: Couldn't find preset "es2015" relative to directory "/home/gableroux"
    at /usr/share/nylas/resources/app.asar/node_modules/babel-core/lib/transformation/file/options/option-manager.js:413:17
    at Array.map (native)
    at OptionManager.resolvePresets (/usr/share/nylas/resources/app.asar/node_modules/babel-core/lib/transformation/file/options/option-manager.js:405:20)
    at OptionManager.mergePresets (/usr/share/nylas/resources/app.asar/node_modules/babel-core/lib/transformation/file/options/option-manager.js:388:10)
    at OptionManager.mergeOptions (/usr/share/nylas/resources/app.asar/node_modules/babel-core/lib/transformation/file/options/option-manager.js:347:14)
    at OptionManager.addConfig (/usr/share/nylas/resources/app.asar/node_modules/babel-core/lib/transformation/file/options/option-manager.js:248:10)
    at OptionManager.findConfigs (/usr/share/nylas/resources/app.asar/node_modules/babel-core/lib/transformation/file/options/option-manager.js:454:16)
    at OptionManager.init (/usr/share/nylas/resources/app.asar/node_modules/babel-core/lib/transformation/file/options/option-manager.js:502:12)
    at File.initOptions (/usr/share/nylas/resources/app.asar/node_modules/babel-core/lib/transformation/file/index.js:243:89)
    at new File (/usr/share/nylas/resources/app.asar/node_modules/babel-core/lib/transformation/file/index.js:159:72)
    at Pipeline.transform (/usr/share/nylas/resources/app.asar/node_modules/babel-core/lib/transformation/pipeline.js:49:16)
    at Object.exports.compile (/usr/share/nylas/resources/app.asar/src/compile-support/babel.js:50:16)
    at compileFileAtPath (/usr/share/nylas/resources/app.asar/src/compile-cache.js:86:44)
    at Object.defineProperty.value [as .es6] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:205:18)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Package.module.exports.Package.requireMainModule (/usr/share/nylas/resources/app.asar/src/package.js:527:27)
    at /usr/share/nylas/resources/app.asar/src/package.js:187:32
    at Package.module.exports.Package.measure (/usr/share/nylas/resources/app.asar/src/package.js:165:15)
    at Package.module.exports.Package.load (/usr/share/nylas/resources/app.asar/src/package.js:179:12)
    at PackageManager.module.exports.PackageManager.loadPackage (/usr/share/nylas/resources/app.asar/src/package-manager.js:462:16)
    at PackageManager.module.exports.PackageManager.loadPackages (/usr/share/nylas/resources/app.asar/src/package-manager.js:439:14)
    at NylasEnvConstructor.module.exports.NylasEnvConstructor.startWindow (/usr/share/nylas/resources/app.asar/src/nylas-env.js:707:23)
    at /usr/share/nylas/resources/app.asar/src/nylas-env.js:731:25

What I did:

hub clone mbilker/cypher ~/.nylas/packages

Then opened nylas with developer console opened.

uname -a

Linux zbookarch 4.6.2-1-ARCH #1 SMP PREEMPT Wed Jun 8 08:40:59 CEST 2016 x86_64 GNU/Linux
nylas --version
0.4.40-85cf726

I did a quick cleanup of my user directory, and found the following old files:
~/.babel.json and ~/.babelrc

 cat ~/.babelrc 
{
      "presets": ["es2015"]
}

I removed these files and now problem is the following:

Error: Cannot find module 'libkeybase'
    at Module._resolveFilename (module.js:339:15)
    at Function.Module._resolveFilename (/usr/share/nylas/resources/app.asar/src/module-cache.js:373:52)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (keybase-store.es6:4:1)
    at Module._compile (module.js:413:34)
    at Object.defineProperty.value [as .es6] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:206:21)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (keybase-login-section.es6:4:1)
    at Module._compile (module.js:413:34)
    at Object.defineProperty.value [as .es6] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:206:21)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (preferences-component.es6:3:1)
    at Module._compile (module.js:413:34)
    at Object.defineProperty.value [as .es6] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:206:21)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (main.es6:3:1)
    at Module._compile (module.js:413:34)
    at Object.defineProperty.value [as .es6] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:206:21)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Package.module.exports.Package.requireMainModule (/usr/share/nylas/resources/app.asar/src/package.js:527:27)
    at /usr/share/nylas/resources/app.asar/src/package.js:187:32
    at Package.module.exports.Package.measure (/usr/share/nylas/resources/app.asar/src/package.js:165:15)
    at Package.module.exports.Package.load (/usr/share/nylas/resources/app.asar/src/package.js:179:12)
    at PackageManager.module.exports.PackageManager.loadPackage (/usr/share/nylas/resources/app.asar/src/package-manager.js:462:16)
    at PackageManager.module.exports.PackageManager.loadPackages (/usr/share/nylas/resources/app.asar/src/package-manager.js:439:14)
    at NylasEnvConstructor.module.exports.NylasEnvConstructor.startWindow (/usr/share/nylas/resources/app.asar/src/nylas-env.js:707:23)
    at /usr/share/nylas/resources/app.asar/src/nylas-env.js:731:25

I'll continue to play around and update here if I find something. :)

Note: I have many non working plugins in fact, I grabbed a few ones to try them out, but many of them are failing with similar errors:

Failed to load package named 'N1-Jiffy'
/usr/share/nylas/resources/app.asar/src/package.js:196 Error: Cannot find module 'giphy-api'
    at Module._resolveFilename (module.js:339:15)
    at Function.Module._resolveFilename (/usr/share/nylas/resources/app.asar/src/module-cache.js:373:52)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (gif-picker.es6:12:13)
    at Module._compile (module.js:413:34)
    at Object.defineProperty.value [as .es6] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:206:21)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (main.es6:3:1)
    at Module._compile (module.js:413:34)
    at Object.defineProperty.value [as .es6] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:206:21)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Package.module.exports.Package.requireMainModule (/usr/share/nylas/resources/app.asar/src/package.js:527:27)
    at /usr/share/nylas/resources/app.asar/src/package.js:187:32
    at Package.module.exports.Package.measure (/usr/share/nylas/resources/app.asar/src/package.js:165:15)
    at Package.module.exports.Package.load (/usr/share/nylas/resources/app.asar/src/package.js:179:12)
    at PackageManager.module.exports.PackageManager.loadPackage (/usr/share/nylas/resources/app.asar/src/package-manager.js:462:16)
    at PackageManager.module.exports.PackageManager.loadPackages (/usr/share/nylas/resources/app.asar/src/package-manager.js:439:14)
    at NylasEnvConstructor.module.exports.NylasEnvConstructor.startWindow (/usr/share/nylas/resources/app.asar/src/nylas-env.js:707:23)
    at /usr/share/nylas/resources/app.asar/src/nylas-env.js:731:25
/usr/share/nylas/resources/app.asar/src/package.js:197 Cannot find module 'giphy-api' Error: Cannot find module 'giphy-api'(…)(anonymous function) @ /usr/share/nylas/resources/app.asar/src/package.js:197
/usr/share/nylas/resources/app.asar/src/package.js:195 Failed to load package named 'n1-unsubscribe'
/usr/share/nylas/resources/app.asar/src/package.js:196 Error: Cannot find module 'underscore'
    at Module._resolveFilename (module.js:339:15)
    at Function.Module._resolveFilename (/usr/share/nylas/resources/app.asar/src/module-cache.js:373:52)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (thread-unsubscribe-store.es6:9:11)
    at Module._compile (module.js:413:34)
    at Object.defineProperty.value [as .es6] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:206:21)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (thread-unsubscribe-store-manager.es6:1:32)
    at Module._compile (module.js:413:34)
    at Object.defineProperty.value [as .es6] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:206:21)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (unsubscribe-buttons.jsx:3:39)
    at Module._compile (module.js:413:34)
    at Object.defineProperty.value [as .jsx] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:206:21)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (main.jsx:5:5)
    at Module._compile (module.js:413:34)
    at Object.defineProperty.value [as .jsx] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:206:21)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Package.module.exports.Package.requireMainModule (/usr/share/nylas/resources/app.asar/src/package.js:527:27)
    at /usr/share/nylas/resources/app.asar/src/package.js:187:32
    at Package.module.exports.Package.measure (/usr/share/nylas/resources/app.asar/src/package.js:165:15)
    at Package.module.exports.Package.load (/usr/share/nylas/resources/app.asar/src/package.js:179:12)
    at PackageManager.module.exports.PackageManager.loadPackage (/usr/share/nylas/resources/app.asar/src/package-manager.js:462:16)
    at PackageManager.module.exports.PackageManager.loadPackages (/usr/share/nylas/resources/app.asar/src/package-manager.js:439:14)
    at NylasEnvConstructor.module.exports.NylasEnvConstructor.startWindow (/usr/share/nylas/resources/app.asar/src/nylas-env.js:707:23)
    at /usr/share/nylas/resources/app.asar/src/nylas-env.js:731:25
/usr/share/nylas/resources/app.asar/src/package.js:197 Cannot find module 'underscore' Error: Cannot find module 'underscore'(…)(anonymous function) @ /usr/share/nylas/resources/app.asar/src/package.js:197
/usr/share/nylas/resources/app.asar/src/package.js:195 Failed to load package named 'nylas-n1-unread-filter'
/usr/share/nylas/resources/app.asar/src/package.js:196 TypeError: Cannot read property 'prototype' of undefined
    at __extends (/home/gableroux/.nylas/packages/nylas-n1-unread-filter/lib/unread-mail-view-filter.cjsx:1:1)
    at /home/gableroux/.nylas/packages/nylas-n1-unread-filter/lib/unread-mail-view-filter.cjsx:8:3
    at Object.<anonymous> (/home/gableroux/.nylas/packages/nylas-n1-unread-filter/lib/unread-mail-view-filter.cjsx:8:3)
    at Object.<anonymous> (/home/gableroux/.nylas/packages/nylas-n1-unread-filter/lib/unread-mail-view-filter.cjsx:1:1)
    at Module._compile (module.js:413:34)
    at Object.defineProperty.value [as .cjsx] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:206:21)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/home/gableroux/.nylas/packages/nylas-n1-unread-filter/lib/main.cjsx:5:24)
    at Object.<anonymous> (/home/gableroux/.nylas/packages/nylas-n1-unread-filter/lib/main.cjsx:1:1)
    at Module._compile (module.js:413:34)
    at Object.defineProperty.value [as .cjsx] (/usr/share/nylas/resources/app.asar/src/compile-cache.js:206:21)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Package.module.exports.Package.requireMainModule (/usr/share/nylas/resources/app.asar/src/package.js:527:27)
    at /usr/share/nylas/resources/app.asar/src/package.js:187:32
    at Package.module.exports.Package.measure (/usr/share/nylas/resources/app.asar/src/package.js:165:15)
    at Package.module.exports.Package.load (/usr/share/nylas/resources/app.asar/src/package.js:179:12)
    at PackageManager.module.exports.PackageManager.loadPackage (/usr/share/nylas/resources/app.asar/src/package-manager.js:462:16)
    at PackageManager.module.exports.PackageManager.loadPackages (/usr/share/nylas/resources/app.asar/src/package-manager.js:439:14)
    at NylasEnvConstructor.module.exports.NylasEnvConstructor.startWindow (/usr/share/nylas/resources/app.asar/src/nylas-env.js:707:23)
    at /usr/share/nylas/resources/app.asar/src/nylas-env.js:731:25
/usr/share/nylas/resources/app.asar/src/package.js:197 Cannot read property 'prototype' of undefined TypeError: Cannot read property 'prototype' of undefined(…)

So maybe it's a problem with Nylas itself

@GabLeRoux
Copy link
Author

GabLeRoux commented Jun 13, 2016

Meh, got it, I only had to npm install inside plugin directories (I cloned them instead of using the download buttons, I was lazy), sorry for the notification ;)

@mbilker
Copy link
Owner

mbilker commented Jun 14, 2016

It's alright. I don't know what the issue is with apm install.
On Mon, Jun 13, 2016 at 7:43 PM Gabriel Le Breton notifications@github.com
wrote:

Closed #18 #18.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#18 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/ABNTbfJFCWL3-YFahu-aj7GRQumTdYqsks5qLesVgaJpZM4I01U5
.

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