Closed redimongo closed 3 weeks ago
Did you add "type": "module"
to your package.json?
Did you add
"type": "module"
to your package.json?
yes I did and that brought up other issues with
file:///Users/russellharrower/Node_Projects/podcast-performance/server/dist/server.js:25
Object.defineProperty(exports, "__esModule", { value: true });
^
ReferenceError: exports is not defined in ES module scope
This file is being treated as an ES module because it has a '.js' file extension and '/Users/russellharrower/Node_Projects/podcast-performance/server/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
Since Fedify only supports ESM, your app should be in ESM too. I guess your bundler or tsc
generates CJS files?
Yeah, could not get it to work with my system, so I decided I'll have to recode my system to work with Deno.
So far the deno sample code works well - so thank you. The reason I am using this tool, is because I could not get the Accept to work when Follow request came in.
I am not sure what I am doing wrong, but I followed the install process for NodeJS and I am getting this error.
I am importing it like this
We use in our package manager.