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

Doesn't work export default. #165

Open
AStaroverov opened this issue Jun 30, 2017 · 2 comments
Open

Doesn't work export default. #165

AStaroverov opened this issue Jun 30, 2017 · 2 comments

Comments

@AStaroverov
Copy link

My config:

{
  "ecmaVersion": 6,
  "libs": [
    "ecma5",
    "ecma6",
    "browser",
    "react"
  ],
  "dontLoad": [
    "**/node_modules/**"
  ],
  "plugins": {
    "node": {},
    "es_modules": {
      "baseUrl": "./"
    },
    "webpack": {
      "configPath": "./build/fake.js"
    }
  }
}

I couldn't find a clear dependence, but often go to definition does not work when working with export default.

Example:

// app-platform/containers/app/container/index.js
import { connect } from 'react-redux'

import { composeSelectors } from 'app-platform/helpers/selectors'
import * as environment from 'app-platform/selectors/environment'
import * as locale from 'app-platform/selectors/locale'

import App from 'app-platform/components/app/container'

const selector = composeSelectors({
  locale: locale.get,
  environment: environment.get
})

export default connect(selector)(App)

And this doesnt work

import App from 'app-platform/containers/app/container'

What i do wrong?

@AStaroverov
Copy link
Author

After refactoring first file it now work..

@nickw444
Copy link
Contributor

Yep, appears to be a bug in ternjs: ternjs/tern#896.

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