How do I create a Template Dialog and generate ESM modules for it? #7287
Unanswered
mvmshakkir
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am upgrading my Serenity project to a new version, which uses ESM modules. However, I am unable to generate JavaScript files in the ESM module format.
tsconfig.json
{
"compileOnSave": true,
"compilerOptions": {
"allowJs": false,
"declaration": false,
"emitBOM": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"jsx": "react-jsx",
"jsxImportSource": "jsx-dom/min",
"module": "ESNext",
"moduleResolution": "Node",
"newLine": "lf",
"noEmit": true,
"noEmitOnError": false,
"outDir": "./wwwroot/esm",
"paths": {
"@/": [ "./Modules/" ],
"@serenity-is/": [ "./node_modules/@serenity-is//dist/index", "./node_modules/.dotnet/serenity./dist/index" ],
"react": [ "./node_modules/preact/compat/" ],
"react-dom": [ "./node_modules/preact/compat/" ]
},
"preserveConstEnums": true,
"rootDir": ".",
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"sourceMap": false,
"target": "ES2017",
"typeRoots": [
"./node_modules/@types"
],
"types": [
"jquery",
"jquery.validation",
"jqueryui"
],
"useDefineForClassFields": false
},
"include": [
"Modules",
"./Modules/**/",
"Modules//*.ts"
//"Scripts//.ts",
//"Modules/**/.ts"
],
"typeAcquisition": {
"enable": false
}
// "Extends": "../sergen.base.json"
}
My code is DynamicReport.ts
declare var Morris: any;
namespace SerExtraCore.Reports {
`;
}
Beta Was this translation helpful? Give feedback.
All reactions