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

Gatsby build error - TypeError: head.querySelector is not a function #2411

Closed
peterpeterparker opened this issue May 5, 2020 · 0 comments
Closed
Labels

Comments

@peterpeterparker
Copy link
Contributor

Stencil version:
@stencil/core v1.12.x

I'm submitting a:
[X] bug report

Current behavior:
When I integrate Stencil Web Component in Gatsby, I face the following error at npm run build time:

(node:16791) UnhandledPromiseRejectionWarning: TypeError: head.querySelector is not a function
    at bootstrapLazy (/Users/daviddalbusco/projects/lab/gatsby-stencil/public/render-page.js:1934:42)
    at /me/project/public/render-page.js:2261:72
(node:16791) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:16791) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled

Expected behavior:
No error

Follow-up

Issue was previously reported in #2374 and solved in the ds-plugins in #39

Steps to reproduce:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant