A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.
I am importing a JS file into a Stencil component with the following import statement import { dateFormat } from '../../utils/dateFormat'; . When i try to compile this (npm run dev) it throws the following error:
If we then look in dist/collection it's creating a folder called dateFormat with an empty index file. If i convert this dateFormat file to typescript then it works.
Expected behavior:
Able to import a JS file.
Steps to reproduce:
clone the stencil-app-starter
Add a JS file that exports something and try to import it
Stencil version:
I'm submitting a:
Current behavior:
I am importing a JS file into a Stencil component with the following import statement
import { dateFormat } from '../../utils/dateFormat';
. When i try to compile this (npm run dev
) it throws the following error:If we then look in
dist/collection
it's creating a folder called dateFormat with an empty index file. If i convert this dateFormat file to typescript then it works.Expected behavior:
Able to import a JS file.
Steps to reproduce:
Related code:
Other information: