Comments (4)
It should not depend on the number or size of files: the parser performs a sequential scan of each function p and t: https://github.com/robisim74/qwik-speak/blob/main/packages/qwik-speak/tools/core/parser.ts#L388
It seems that the tokenizer can't find the end of a function t or p, and goes into stack error.
Without recreating the problem it is difficult for me to understand why it happens, I ask you:
- Do you get the same error with version v0.19?
- Have you added any particularly complex t or p functions, for example on multiple lines, with many options and parentheses?
Also check if you have source files that shouldn't be included - you have the option excludedPaths
from qwik-speak.
I was able to recreate the error, for example when the closing quotes are missing: <h3>{t('params)}</h3>
In version 0.20.1 I added a log of the t or p function that should generate the error
from qwik-speak.
Yes that is correct. In my case it was a string that looked like this: t(''Translate me').
Usually something like this should be picked up by a build or eslint. I am moving away from the previous "self made" auto key. I assume that this is an issue isolated to my use case specifically and is unlikely to end up happening regularly.
from qwik-speak.
👍
from qwik-speak.
Related Issues (20)
- Error since latest version HOT 5
- Issue with runtime translation in some scenarios HOT 7
- Does qwik-speak-extract takes into account arrays? HOT 3
- Upgrade to qwik 1.3 HOT 2
- Showing 404 page in localized routing with lang param HOT 3
- Fix failing tests on pipeline HOT 1
- Conditional rendering children shows keys instead values HOT 3
- Feat: autoassign-keys HOT 36
- FYI: DeepL translator for qwik-speak HOT 3
- If/else - condition HOT 3
- URL rewrite translations arent working
- extractFromUrl API is awkward to use HOT 4
- Text reverts back to default value on components containing modular-form HOT 19
- Support for Zero case in plural HOT 2
- Qwik Speak resolving locale multiple times on first render HOT 1
- Sitemap is not generating / finding routes when using localized routing HOT 2
- NX monorepo, only default translations are served on client in js files when run locally HOT 2
- Use of new t = inlineTranslate() in useVisibleTask$ HOT 4
- [Feature request] Domain-based routing HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qwik-speak.