New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Vue SFC <script setup lang='ts'>
breaks build
#2081
Comments
Not sure why it works in the integration test and in other contexts but breaks in this simple reproduction. I made a sandbox that replicates the issue, explains it (rather, explains my interpretation of it), and fixes it: https://codesandbox.io/p/sandbox/hopeful-kate-glcvn4?file=%2Fbud.config.mjs I'll probably apply a similar solution (using bud.js APIs) as a patch before circling back on figuring out why the integration tests are passing. |
Thanks @kellymears - I've patched my |
I think a very similar fix (plucking |
- moves `css`, `scss`, `ts` rules out of `oneOf` and into the main `module.rules` array - simplifies integration test. i don't know why but this might have been silently failing (even though it says 3/3 tests executed) refers: - #2080 - #2081 ## Type of change **PATCH: backwards compatible change** This PR includes breaking changes to the following core packages: - none This PR includes breaking changes to the follow extensions: - none ## Dependencies ### Adds - none ### Removes - none
I was wrong about this but it should be fixed by #2082. Guess we'll find out when |
Agreement
Describe the issue
When using
<script setup lang='ts'>
syntax in a Vue 3 SFC, Bud fails to build in dev and prod.Removing
lang='ts'
results in a working buildExpected Behavior
The build completes with no errors, SFC runs with expected
<script setup>
behaviour.Actual Behavior
It seems like the loader is emitting TS, but being processed as JS. I don't know enough about the process to comment further.
Steps To Reproduce
examples/vue-typescript
@roots/bud-sass
dependency (to bypass [bug] vue-typescript example does not build (possible@roots/bud-sass
issue) #2080)<style lang="scss">
blocks from both SFCsyarn run bud dev
version
6.8.0 / 2023.2.3
Logs
Configuration
No `bud.config.js`
Relevant .budfiles
The text was updated successfully, but these errors were encountered: