Skip to content

Commit

Permalink
fix: four codesandbox-demos during build-process
Browse files Browse the repository at this point in the history
On typescript-demo and on gondel-react:
Error: Cannot find module 'typescript'

On plugin-data-demo and on react-gondel:
Failed to load '/project/sandbox/webpack.config.js' config

On react-gondel:
Error: Cannot find module '@babel/plugin-proposal-decorators'
  • Loading branch information
Stefan.Brueck committed Oct 24, 2023
1 parent 3c1b726 commit 247f4ad
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 8 deletions.
1 change: 1 addition & 0 deletions examples/gondel-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"react-dom": "17.0.2"
},
"devDependencies": {
"@types/react": "^18.2.31",
"css-loader": "5.2.7",
"html-webpack-plugin": "4.5.2",
"style-loader": "2.0.0",
Expand Down
12 changes: 8 additions & 4 deletions examples/gondel-react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.json",
{
"compilerOptions": {
"skipLibCheck": true,
"sourceMap": true,
Expand All @@ -17,11 +16,16 @@
"removeComments": false,
"importHelpers": true,
"outDir": "dist",
"types": ["jest", "webpack-env"],
"types": ["jest", "webpack-env", "node"],
"lib": [
"es6",
"es7",
"dom"
]
},
"exclude": ["dist", "build", "node_modules"],
"paths": {
"@gondel/core/*": ["./packages/core/src/*"],
"@gondel/plugin-*/*": ["./packages/plugins/*/*"]
}
}
}
1 change: 1 addition & 0 deletions examples/plugin-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@gondel/plugin-hot": "^1.2.8"
},
"devDependencies": {
"@babel/core": "7.22.10",
"html-webpack-plugin": "4.5.2",
"ts-config-webpack-plugin": "2.0.3",
"webpack": "4.46.0",
Expand Down
25 changes: 23 additions & 2 deletions examples/plugin-data/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"skipLibCheck": true
"skipLibCheck": true,
"sourceMap": true,
"target": "es5",
"module": "esnext",
"jsx": "react",
"allowSyntheticDefaultImports": true,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"declaration": false,
"noImplicitAny": true,
"noImplicitReturns": true,
"strictNullChecks": true,
"removeComments": false,
"importHelpers": true,
"outDir": "dist",
"types": ["jest", "webpack-env"],
"lib": ["es6", "es7", "dom"]
},
"exclude": ["dist", "build", "node_modules"],
"paths": {
"@gondel/core/*": ["./packages/core/src/*"],
"@gondel/plugin-*/*": ["./packages/plugins/*/*"]
}
}
2 changes: 2 additions & 0 deletions examples/react-gondel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
},
"devDependencies": {
"@babel/core": "7.22.10",
"@babel/plugin-proposal-decorators": "^7.23.2",
"@babel/preset-env": "7.22.10",
"@babel/preset-react": "7.22.5",
"babel-plugin-transform-class-properties": "^6.24.1",
"html-webpack-plugin": "4.5.2",
"js-config-webpack-plugin": "2.0.3",
"webpack": "4.46.0",
Expand Down
25 changes: 23 additions & 2 deletions examples/typescript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"skipLibCheck": true
"skipLibCheck": true,
"sourceMap": true,
"target": "es5",
"module": "esnext",
"jsx": "react",
"allowSyntheticDefaultImports": true,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"declaration": false,
"noImplicitAny": true,
"noImplicitReturns": true,
"strictNullChecks": true,
"removeComments": false,
"importHelpers": true,
"outDir": "dist",
"types": ["jest", "webpack-env"],
"lib": ["es6", "es7", "dom"]
},
"exclude": ["dist", "build", "node_modules"],
"paths": {
"@gondel/core/*": ["./packages/core/src/*"],
"@gondel/plugin-*/*": ["./packages/plugins/*/*"]
}
}

0 comments on commit 247f4ad

Please sign in to comment.