-
Notifications
You must be signed in to change notification settings - Fork 8
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
Issue with documentation about how to use plugins #33
Comments
Following up on this, the correct way to specify plugins are to use a module.exports = require("marko-starter").projectConfig({
lassoConfig: {
plugins: [
"lasso-marko",
"lasso-sass",
],
},
}); From: https://github.com/marko-js/markojs-website/blob/master/project.js So the real issue here is the lack of correct documentation. I still have no idea what the top level |
@maxmilton Sorry for the confusion. We should definitely update the documentation to reflect this. Would be interested in working on updating the docs? Thanks! |
Sure, I'll have a go at updating the readme when I have some free time :) |
Part 1
When using plugins with marko-starter it throws an error:
TypeError: Cannot assign to read only property 'name' of function
.Click to expand full error
To reproduce use a
project.js
like:with package versions:
Part 2
If instead you use a
project.js
like:You'll get a different error:
TypeError: plugin.install is not a function
Click to expand full error
The debugging experience with lasso/marko has been frustrating to say the least.
The text was updated successfully, but these errors were encountered: