You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
[marko-starter plugins] Installed plugin: lasso
(node:24324) UnhandledPromiseRejectionWarning: TypeError: Cannot assign to read only property 'name' of function 'function (lasso, config) {
var sassHandler = {
properties: {
path: 'string',
...<omitted>...
}'
at plugins.forEach (/home/max/Development/prowearegenkicom/auth/node_modules/marko-starter/src/plugin-manager.js:39:17)
at Array.forEach (<anonymous>)
at Object.exports.installPlugins (/home/max/Development/prowearegenkicom/auth/node_modules/marko-starter/src/plugin-manager.js:32:11)
at beforeStartPromise.then (/home/max/Development/prowearegenkicom/auth/node_modules/marko-starter/index.js:75:25)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
at Function.Module.runMain (module.js:703:11)
at startup (bootstrap_node.js:194:16)
at bootstrap_node.js:618:3
(node:24324) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:24324) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
You'll get a different error: TypeError: plugin.install is not a function
Click to expand full error
[marko-starter plugins] Installed plugin: lasso
(node:25444) UnhandledPromiseRejectionWarning: TypeError: plugin.install is not a function
at plugins.forEach (/home/max/Development/prowearegenkicom/auth/node_modules/marko-starter/src/plugin-manager.js:41:12)
at Array.forEach (<anonymous>)
at Object.exports.installPlugins (/home/max/Development/prowearegenkicom/auth/node_modules/marko-starter/src/plugin-manager.js:32:11)
at beforeStartPromise.then (/home/max/Development/prowearegenkicom/auth/node_modules/marko-starter/index.js:75:25)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
at Function.Module.runMain (module.js:703:11)
at startup (bootstrap_node.js:194:16)
at bootstrap_node.js:618:3
(node:25444) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:25444) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
The debugging experience with lasso/marko has been frustrating to say the least.
The text was updated successfully, but these errors were encountered:
@maxmilton Sorry for the confusion. We should definitely update the documentation to reflect this. Would be interested in working on updating the docs? Thanks!
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: