Having trouble resolving this error in the Qwik framework while building a static site:
ReferenceError: exports is not defined in ES module scope
at file:///media/oem/MyFiles/8_DEVELOPMENT/nexasoft/server/@qwik-city-plan.mjs:1:1097
at ModuleJob.run (node:internal/modules/esm/module_job:192:25)
The issue seems to be related to this particular line of code,
exports.__esModule=!0;var K=require("@builder.io/qwik"),Le=require("../components/header/header");exports.default=K.component$(function(){return React.createElement(React.Fragment,null,React.createElement("main",null,React.createElement(Le.default,null),...
I have been encountering this problem ever since I updated my dependencies with Qwik V1.
I attempted to resolve it by using
<script>var exports = {};</script>
, but the error persists.
You can find my project repository here: https://github.com/Maikpwwq/nexasoft