envs icon indicating copy to clipboard operation
envs copied to clipboard

Implement StencilJS compiler

Open jdnichollsc opened this issue 4 years ago • 7 comments

Description

Add support for Stencil compiler

Describe the solution you'd like

Be able to create web components by using Stencil

Describe alternatives you've considered

Nothing, I want to create web components that I can reuse from any project

Additional context

Be able to create components like this https://github.com/proyecto26/animatable-component from bit

Thanks in advance!

jdnichollsc avatar May 12 '20 20:05 jdnichollsc

Hi! have you tried using this one - https://bit.dev/bit/envs/compilers/stencil

itaymendel avatar May 13 '20 05:05 itaymendel

Do yo know if we can use TypeScript files instead?

jdnichollsc avatar May 13 '20 12:05 jdnichollsc

Stencil support TS, so you should be fine using it. plus it was tested with TS :)

itaymendel avatar May 13 '20 13:05 itaymendel

Let me try, thanks

jdnichollsc avatar May 13 '20 14:05 jdnichollsc

I'm getting errors "Failed to compile":

./src/App/index.js
Module not found: Can't resolve '@bit/proyecto26.animatable.animatable-component' in '/capsule/src/App'

Link: https://bit.dev/proyecto26/animatable/animatable-component

jdnichollsc avatar May 14 '20 06:05 jdnichollsc

This is the repo of the project: https://github.com/proyecto26/animatable-component What do you think? Thanks for your help!

jdnichollsc avatar May 14 '20 06:05 jdnichollsc

Hi @jdnichollsc , we released a new version of Bit and the Stencil compiler. Please try with Bit version 14.8.8, and Stencil compiler version 0.0.32 https://bit.dev/bit/envs/compilers/stencil/?version=0.0.32

Let me know if it's working fine for you!

JoshK2 avatar Jul 15 '20 09:07 JoshK2