Open
Description
Does not properly support type module.
package.json:
{
...
"type": "module",
...
}
routify.config.js
export default {
debug: true,
pages: 'app/frontend/pages',
routifyDir: 'app/frontend/.routify'
}
Error:
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/kieran/Work/FullApp/routify.config.js from /Users/kieran/Work/FullApp/node_modules/configent/configent.js not supported.
17:16:41 routify.1 | Instead change the require of routify.config.js in /Users/kieran/Work/FullApp/node_modules/configent/configent.js to a dynamic import() which is available in all CommonJS modules.
17:16:41 routify.1 | at getUserConfig (/Users/kieran/Work/FullApp/node_modules/configent/configent.js:94:35)
17:16:41 routify.1 | at buildConfig (/Users/kieran/Work/FullApp/node_modules/configent/configent.js:66:33)
17:16:41 routify.1 | at configent (/Users/kieran/Work/FullApp/node_modules/configent/configent.js:56:12)
17:16:41 routify.1 | at module.exports (/Users/kieran/Work/FullApp/node_modules/@roxi/routify/lib/utils/config.js:7:40)
17:16:41 routify.1 | at Object.<anonymous> (/Users/kieran/Work/FullApp/node_modules/@roxi/routify/plugins/cli.js:5:48)