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

[v2] Since gatsby@2.0.0-alpha.16, the main package entry point is unavailable #5410

Closed
kripod opened this issue May 14, 2018 · 2 comments
Closed
Labels
type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change

Comments

@kripod
Copy link
Contributor

kripod commented May 14, 2018

Description

In gatsby@2.0.0-alpha.13, the main entry point is available, but since gatsby@2.0.0-alpha.16, it cannot be found, thus, eslint-plugin-import's import/no-unresolved rule cannot pass.

Environment

  • Gatsby version (npm list gatsby): 2.0.0-alpha.32
  • gatsby-cli version (gatsby --version): 2.0.0-alpha.32
  • Node.js version: 8.11.1
  • Operating System: Windows 10 x64
@m-allanson m-allanson added the type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change label May 15, 2018
@m-allanson
Copy link
Contributor

The browser.js file was removed in #4887. In the diff you can see the file packages/gatsby/src/browser.js was removed, along with the browser entry from packages/gatsby/package.json. The main entry was left unchanged.

This was replaced with a webpack alias mapping gatsby to .cache/gatsby-browser-entry.js.

I guess this can be fixed by updating main in packages/gatsby/package.json to point to .cache/gatsby-browser-entry.js?

gatsby-browser-entry.js contains uncompiled ES6 and JSX, but I think that'll be fixed by #4402.

@pieh
Copy link
Contributor

pieh commented May 28, 2018

Closed by #5481

@pieh pieh closed this as completed May 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change
Projects
None yet
Development

No branches or pull requests

3 participants