Skip to content
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

TypeError: Cannot read property 'undefined' of undefined at getFilter #671

Closed
emilos opened this issue Dec 9, 2020 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@emilos
Copy link
Contributor

emilos commented Dec 9, 2020

price.html

<translation pl>{product.prices.PLN | monetize({ symbol: 'zł', separator: ',' })}</translation>
<translation de>{product.prices.EUR | monetize({ symbol: '€', separator: '.', ending: false, space: false })}</translation>
<translation en>{product.prices.GBP | monetize({ symbol: '£', separator: '.', ending: false, space: false })}</translation>

usage:

<import price from="components/product/price.html"/>

<price {product} />

error:

TypeError: Cannot read property 'undefined' of undefined at getFilter (/Users/emilos/Desktop/Projects/buxlabs/buxus-app/node_modules/boxwood/src/utilities/filters.js:125:22) at /Users/emilos/Desktop/Projects/buxlabs/buxus-app/node_modules/boxwood/src/Renderer.js:129:24 at Array.forEach (<anonymous>) at Renderer.render (/Users/emilos/Desktop/Projects/buxlabs/buxus-app/node_modules/boxwood/src/Renderer.js:128:23) at async generate (/Users/emilos/Desktop/Projects/buxlabs/buxus-app/node_modules/boxwood/src/compilers/html/Compiler.js:22:50) at async Compiler.compile (/Users/emilos/Desktop/Projects/buxlabs/buxus-app/node_modules/boxwood/src/Compiler.js:17:20) at async compileFile (/Users/emilos/Desktop/Projects/buxlabs/buxus-app/node_modules/express-boxwood/index.js:24:44) at async View.render [as engine] (/Users/emilos/Desktop/Projects/buxlabs/buxus-app/node_modules/express-boxwood/index.js:35:24)
@emilos emilos added the bug Something isn't working label Dec 9, 2020
@emilos emilos closed this as completed Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant