You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
After upgrading an existing application to Stencil 1.16.0 and running "npx stencil build" (with or without additional parameters), I get the following output, and the build fails:
$ npx stencil build
[02:07.8] @stencil/core v1.16.0 🏊
[02:09.3] build, awesome-component, prod mode, started ...
[02:09.3] transpile started ...
[02:10.9] transpile finished in 1.53 s
[ ERROR ] TypeScript: ./node_modules/@stencil/core/testing/jest/jest-environment.d.ts:9:44
Cannot find module 'puppeteer' or its corresponding type declarations.
L8: setup(): Promise<void>;
L9: newPuppeteerPage(): Promise<import("puppeteer").Page>;
L10: closeOpenPages(): Promise<void>;
[ ERROR ] TypeScript: ./node_modules/@stencil/core/testing/puppeteer/puppeteer-declarations.d.ts:3:28
Cannot find module 'puppeteer' or its corresponding type declarations.
L2: import { EventInitDict, EventSpy, ScreenshotDiff, ScreenshotOptions } from '@stencil/core/internal';
L3: import * as puppeteer from 'puppeteer';
L4: export interface NewE2EPageOptions extends puppeteer.NavigationOptions {
[ ERROR ] TypeScript: ./node_modules/@stencil/core/testing/puppeteer/puppeteer-declarations.d.ts:118:64
Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i @types/node`.
L117: _e2eClose(options?: puppeteer.PageCloseOptions): Promise<void>;
L118: screenshot(options?: puppeteer.ScreenshotOptions): Promise<Buffer>;
L119: }
[ ERROR ] TypeScript: ./node_modules/@stencil/core/testing/puppeteer/puppeteer-declarations.d.ts:1:23
Cannot find type definition file for 'node'.
L1: /// <reference types="node" />
L2: import { EventInitDict, EventSpy, ScreenshotDiff, ScreenshotOptions } from '@stencil/core/internal';
[ ERROR ] TypeScript: ./src/components/awesome-component/awesome-component.e2e.ts:3:1
Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i
@types/jest` or `npm i @types/mocha`.
L3: describe('my-awesome-component', () => {
L4: it('renders', async () => {
[ ERROR ] TypeScript: ./src/components/awesome-component/awesome-component.e2e.ts:4:3
Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or
`npm i @types/mocha`.
L3: describe('my-awesome-component', () => {
L4: it('renders', async () => {
L5: const page = await newE2EPage();
[ ERROR ] TypeScript: ./src/components/awesome-component/awesome-component.e2e.ts:9:5
Cannot find name 'expect'.
L8: const element = await page.find('my-awesome-component');
L9: expect(element).toHaveClass('hydrated');
L10: });
[ ERROR ] TypeScript: ./src/components/awesome-component/awesome-component.spec.ts:3:1
Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i
@types/jest` or `npm i @types/mocha`.
L3: describe('my-awesome-component', () => {
L4: it('builds', () => {
[ ERROR ] TypeScript: ./src/components/awesome-component/awesome-component.spec.ts:4:3
Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or
`npm i @types/mocha`.
L3: describe('my-awesome-component', () => {
L4: it('builds', () => {
L5: expect(new AwesomeComponent()).toBeTruthy();
[ ERROR ] TypeScript: ./src/components/awesome-component/awesome-component.spec.ts:5:5
Cannot find name 'expect'.
L4: it('builds', () => {
L5: expect(new AwesomeComponent()).toBeTruthy();
L6: });
[ ERROR ] TypeScript: ./src/utils/utils.spec.ts:3:1
Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i
@types/jest` or `npm i @types/mocha`.
L3: describe('format', () => {
L4: it('returns empty string for no names defined', () => {
[ ERROR ] TypeScript: ./src/utils/utils.spec.ts:4:3
Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or
`npm i @types/mocha`.
L3: describe('format', () => {
L4: it('returns empty string for no names defined', () => {
L5: expect(format(undefined, undefined, undefined)).toEqual('');
[ ERROR ] TypeScript: ./src/utils/utils.spec.ts:5:5
Cannot find name 'expect'.
L4: it('returns empty string for no names defined', () => {
L5: expect(format(undefined, undefined, undefined)).toEqual('');
L6: });
[02:10.9] build failed in 1.55 s
After downgrading to Stencil 1.15.0, everything works fine again.
The text was updated successfully, but these errors were encountered:
I also have lots of problem with everything around Firebase with the version 1.16...
Like:
[ WARN ] Bundling Warning UNRESOLVED_IMPORT
'rxjs' is imported by ./node_modules/rxfire/firestore/dist/index.esm.js, but could not be resolved –
treating it as an external dependency
This is not an error, but there is no valid package compiled.
I had the same error about Cannot find name 'describe'. Do you need to install type definitions for a test runner?...
I ran npm run test and it just installed missing dependencies.
Stencil version:
I'm submitting a:
[ x] bug report
[ ] feature request
[ ] support request
Current behavior:
After upgrading an existing application to Stencil 1.16.0 and running "npx stencil build" (with or without additional parameters), I get the following output, and the build fails:
After downgrading to Stencil 1.15.0, everything works fine again.
The text was updated successfully, but these errors were encountered: