Closed basickarl closed 6 years ago
Hey @basickarl. We need to update the documentation and sample apps. The Marko taglib was externalized into @lasso/marko-taglib
in Lasso 3. You need to install this module and then add a marko.json
in the root of your project to import the taglib:
{
"taglibImports": [
"@lasso/marko-taglib/marko.json"
]
}
Let me know if this fixes your issue.
After installing the following:
npm install lasso-marko
npm install @lasso/marko-taglib
I get the following error:
Render error. Exception: Error: Error while applying option of "plugin". Cause: Error: Plugin module not found for "minprops/lasso". Searched from "/home/karl/dev/node/psycat"
at Object.plugin (/home/karl/dev/node/psycat/node_modules/lasso/src/config-loader.js:292:43)
at invokeHandlers (/home/karl/dev/node/psycat/node_modules/property-handlers/lib/index.js:72:29)
at Object.plugins (/home/karl/dev/node/psycat/node_modules/lasso/src/config-loader.js:285:21)
at invokeHandlers (/home/karl/dev/node/psycat/node_modules/property-handlers/lib/index.js:72:29)
at Object.load (/home/karl/dev/node/psycat/node_modules/lasso/src/config-loader.js:381:5)
at create (/home/karl/dev/node/psycat/node_modules/lasso/src/index.js:49:31)
at Object.getDefaultLasso (/home/karl/dev/node/psycat/node_modules/lasso/src/index.js:70:24)
at getLassoRenderContext (/home/karl/dev/node/psycat/node_modules/@lasso/marko-taglib/taglib/getLassoRenderContext.js:10:22)
at render (/home/karl/dev/node/psycat/node_modules/@lasso/marko-taglib/taglib/config-tag.js:5:28)
at wrappedRenderer (/home/karl/dev/node/psycat/node_modules/marko/src/runtime/helpers.js:106:13) (config.plugins)
at error (/home/karl/dev/node/psycat/node_modules/property-handlers/lib/index.js:33:17)
at invokeHandlers (/home/karl/dev/node/psycat/node_modules/property-handlers/lib/index.js:75:17)
at Object.plugins (/home/karl/dev/node/psycat/node_modules/lasso/src/config-loader.js:285:21)
at invokeHandlers (/home/karl/dev/node/psycat/node_modules/property-handlers/lib/index.js:72:29)
at Object.load (/home/karl/dev/node/psycat/node_modules/lasso/src/config-loader.js:381:5)
at create (/home/karl/dev/node/psycat/node_modules/lasso/src/index.js:49:31)
at Object.getDefaultLasso (/home/karl/dev/node/psycat/node_modules/lasso/src/index.js:70:24)
at getLassoRenderContext (/home/karl/dev/node/psycat/node_modules/@lasso/marko-taglib/taglib/getLassoRenderContext.js:10:22)
at render (/home/karl/dev/node/psycat/node_modules/@lasso/marko-taglib/taglib/config-tag.js:5:28)
at wrappedRenderer (/home/karl/dev/node/psycat/node_modules/marko/src/runtime/helpers.js:106:13)
About the documentation. I feel like yous have written far too much to be able to maintain. Perhaps just keep all of the documentation in one repo.
Did any deprecations happen to anything when upgrading from lasso v2 to v3?
@basickarl It's working fine for me with below configuration.
"@lasso/marko-taglib": "^1.0.9",
"lasso": "^3.1.2",
"lasso-marko": "^2.4.0",
"marko": "^4.7.5"
Recently I have updated the docs. If you are using lasso@^3 (latest), make sure to install the lasso-marko-taglib, so that you can use the lasso custom tags. Hope this solves your issue.
docs now mention @lasso/marko-taglib
Marko Version: 4.7.5 Lasso version: 3.1.2
Hi! Just recently upgraded Lasso from 2.x to 3.x. I see there have been changes (for the better). However, I'm having a hard time finding how my template.marko file will include the browser.json dependencies.
It states currently to write
<lasso-page package-path="./browser.json"/>
in the template.marko file. However after updating Lasso it doesn't recognize the tag ([application/client/pages/home/home.template.marko:1:0] Unrecognized tag: lasso-page - More details: https://github.com/marko-js/marko/wiki/Error:-Unrecognized-Tag
). I looked over at the Lasso library documentation and it doesn't state how this works (it's been totally removed from the example, see below) and the Marko documentation still refers to using the tag lasso-page.Reference: https://markojs.com/docs/lasso/#lasso-custom-tags https://github.com/lasso-js/lasso#lassojs-taglib
Example code on https://github.com/lasso-js/lasso#command-line-interface
Error:
home.template.marko
home.browser.json