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
{{ message }}
Repository navigation
1.12.3 "Composite projects may not disable declaration emit." #2349
[x bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
In dev mode the latest version 1.12.3 throws this error again in a lerna context although was fixed some time ago. It's back :-) All tsconfigfiles a re set to declaration: true.
Expected behavior:
Respects tsconfig with declaration: true and doesn't throw error.
simonhaenisch(wird in einem neuem Tab geöffnet) vor 6 Tagen @matthias Max not sure but wouldn't it just fix it if you explicitly set buildDist: true in your stencil config?
simonhaenisch(wird in einem neuem Tab geöffnet) vor 6 Tagen
it's an actual option for stencil.config.ts
image.png
image.png
(wird in einem neuem Tab geöffnet)
Matthias Max(wird in einem neuem Tab geöffnet) vor 5 Tagen
Agreed this is maybe one way. But I would have expected the typescript setup to be the same for dev and prod without having to adjust the config. Especially if the error doesn‘t lead you at all to the right place. Do you agree?
So would this be more of a warning that should be printed instead of the „fix“ I PR‘ed? @adam what do you think?
Matthias Max(wird in einem neuem Tab geöffnet) vor 5 Tagen
Like, this took me ages to find and I want others to not have to fall into this trap.
adam(wird in einem neuem Tab geöffnet) vor 5 Tagen
sorry pretty disconnected right now, can you ping me again on Monday? We’ll be able to dedicate a lot more time next week
Matthias Max(wird in einem neuem Tab geöffnet) vor 5 Tagen
Awesome, cu :victory:
TBH I don't really get the buildDist option of the config... maybe it should be removed, and its logic be replaced with outputTargets.some(target => target.type === 'dist')? Is it a legacy option from before output targets were a thing? If so, I'd definitely get rid of it, or at least deprecate it and change the implementation so that it doesn't create different behavior anymore.
Then you should probably open a new issue instead of commenting on this one that was fixed 3 years ago which means this time it's probably only tangentially related to the cause of the issue back then? You can mention this issue in your new one for reference, and your new issue will actually get looked at by the current maintainers.
I've unsubscribed from this issue now but please be aware that when you comment on an old issue, you notify everyone who's been active on it before.
Activity
bitflower commentedon Apr 28, 2020
Still happening with
1.12.6bitflower commentedon Apr 29, 2020
Further analysis shows that there is a difference between prod and dev build on this line:

On prod build this returns:
whereas in dev mode it returns:
Somehow in dev mode the
tsconfigseems to be different.@manucorporat / @adamdbradley is the
tsconfigsomehow manipulated in dev mode?bitflower commentedon Apr 29, 2020
The loaded config is exactly the same so it must be changed somehow during transpile:

bitflower commentedon Apr 29, 2020
I got it working with the help of @simonhaenisch by changing this line:

Result:

bitflower commentedon May 6, 2020
Conversation from Slack for reference:
simonhaenisch(wird in einem neuem Tab geöffnet) vor 6 Tagen
@matthias Max not sure but wouldn't it just fix it if you explicitly set buildDist: true in your stencil config?
simonhaenisch(wird in einem neuem Tab geöffnet) vor 6 Tagen
it's an actual option for stencil.config.ts
image.png
image.png
(wird in einem neuem Tab geöffnet)
Matthias Max(wird in einem neuem Tab geöffnet) vor 5 Tagen
Agreed this is maybe one way. But I would have expected the typescript setup to be the same for dev and prod without having to adjust the config. Especially if the error doesn‘t lead you at all to the right place. Do you agree?
So would this be more of a warning that should be printed instead of the „fix“ I PR‘ed? @adam what do you think?
Matthias Max(wird in einem neuem Tab geöffnet) vor 5 Tagen
Like, this took me ages to find and I want others to not have to fall into this trap.
adam(wird in einem neuem Tab geöffnet) vor 5 Tagen
sorry pretty disconnected right now, can you ping me again on Monday? We’ll be able to dedicate a lot more time next week
Matthias Max(wird in einem neuem Tab geöffnet) vor 5 Tagen
Awesome, cu :victory:
bitflower commentedon May 6, 2020
https://stencil-worldwide.slack.com/archives/C79EANFL7/p1588190263240400
simonhaenisch commentedon May 6, 2020
TBH I don't really get the
buildDistoption of the config... maybe it should be removed, and its logic be replaced withoutputTargets.some(target => target.type === 'dist')? Is it a legacy option from before output targets were a thing? If so, I'd definitely get rid of it, or at least deprecate it and change the implementation so that it doesn't create different behavior anymore.manucorporat commentedon May 6, 2020
Fixed!
ipepiji commentedon Mar 29, 2023
I still get "Error: error TS6304: Composite projects may not disable declaration emit."
simonhaenisch commentedon Mar 29, 2023
Then you should probably open a new issue instead of commenting on this one that was fixed 3 years ago which means this time it's probably only tangentially related to the cause of the issue back then? You can mention this issue in your new one for reference, and your new issue will actually get looked at by the current maintainers.
I've unsubscribed from this issue now but please be aware that when you comment on an old issue, you notify everyone who's been active on it before.
Yokohmariam commentedon Jun 20, 2024
inside tsconfig.base.json add
inside tsconfig.storybook.json add
oshliaer commentedon Jun 27, 2024
@Yokohmariam, thank you!