Skip to content

petercmuc/build-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Error App

Demonstrates inconsistent build behaviour: With invalid import statement the first build succeeds, the second one fails.

How to

First, build the app - which should work fine:

npm ci
npm run build

Then, in app-root.tsx change the import path of MyType to something non-existent like

import { MyType } from './../../types/myType';

and run:

npm run build

result: no error is shown in console. A second execution fails the build

npm run build
[ ERROR ]  TypeScript: src/components.d.ts:18:24
           Cannot find name 'MyType'.

About

Reproduction for stencil build issue

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors