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 build website #4912

Closed
d4nyll opened this issue Nov 18, 2017 · 2 comments
Closed

Unable to build website #4912

d4nyll opened this issue Nov 18, 2017 · 2 comments
Assignees

Comments

@d4nyll
Copy link
Contributor

d4nyll commented Nov 18, 2017

Do you want to request a feature or report a bug?
🐛 Bug 🐛

What is the current behavior?

Steps to reproduce (following instructions from the Contribution Guidelines:

$ git clone [email protected]:facebook/jest.git
$ cd jest
$ git reset --hard 3d84d75374d23b035cc87cba14afaa7b761273b7
$ yarn
$ cd website
$ yarn
$ yarn run build
yarn run v1.3.2
warning package.json: No license field
$ docusaurus-build
Extracting translateable strings from files...
Loading translation files...
Generating Metadata for Docs....
Generating Metadata for Docs....
Generating Metadata for Docs....
generate.js triggered...
Generating Metadata for Docs....
feed.js triggered...
feed.js triggered...
sitemap.js triggered...
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Checkthe render method of `Index`.
    in Index
    in div (created by Site)
    in body (created by Site)
    in html (created by Site)
    in Site
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Checkthe render method of `Index`.
    in Index
    in div (created by Site)
    in body (created by Site)
    in html (created by Site)
    in Site
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Checkthe render method of `Index`.
    in Index
    in div (created by Site)
    in body (created by Site)
    in html (created by Site)
    in Site
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Checkthe render method of `Index`.
    in Index
    in div (created by Site)
    in body (created by Site)
    in html (created by Site)
    in Site
Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of `Index`. See https://fb.me/react-warning-keys for more information.
    in a (created by Index)
    in Index
    in div (created by Site)
    in body (created by Site)
    in html (created by Site)
    in Site
/home/dli/playground/jest/website/node_modules/fbjs/lib/invariant.js:49
    throw error;
    ^

Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Check the render method of `Index`.
    at invariant (/home/dli/playground/jest/website/node_modules/fbjs/lib/invariant.js:42:15)
    at instantiateReactComponent (/home/dli/playground/jest/website/node_modules/react-dom/lib/instantiateReactComponent.js:72:56)
    at instantiateChild (/home/dli/playground/jest/website/node_modules/react-dom/lib/ReactChildReconciler.js:42:28)
    at /home/dli/playground/jest/website/node_modules/react-dom/lib/ReactChildReconciler.js:69:16
    at traverseAllChildrenImpl (/home/dli/playground/jest/website/node_modules/react-dom/lib/traverseAllChildren.js:75:5)
    at traverseAllChildrenImpl (/home/dli/playground/jest/website/node_modules/react-dom/lib/traverseAllChildren.js:91:23)
    at traverseAllChildren (/home/dli/playground/jest/website/node_modules/react-dom/lib/traverseAllChildren.js:170:10)
    at Object.instantiateChildren (/home/dli/playground/jest/website/node_modules/react-dom/lib/ReactChildReconciler.js:68:7)
    at ReactDOMComponent._reconcilerInstantiateChildren (/home/dli/playground/jest/website/node_modules/react-dom/lib/ReactMultiChild.js:183:41)
    at ReactDOMComponent.mountChildren (/home/dli/playground/jest/website/node_modules/react-dom/lib/ReactMultiChild.js:222:27)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

What is the expected behavior?

The build should succeed and when I run yarn run start I should see the website.

Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.

$ uname -a
Linux [omitted] 4.13.0-16-lowlatency #19-Ubuntu SMP PREEMPT [date] x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 17.10
Release:        17.10
Codename:       artful
$ node -v
v8.9.0
$ yarn -v
1.3.2
@tryzniak
Copy link
Contributor

It probably can be closed now because of #4924

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants