Hi, after syncing our plasmic project we get the following errors:
ERROR in ./src/components/plasmic/project_name/PlasmicInside.tsx 15376:37-45
export 'Checkbox' (imported as 'Checkbox') was not found in '@plasmicpkgs/antd/skinny/registerCheckbox' (possible exports: checkboxGroupMeta, checkboxMeta, registerCheckbox, registerCheckboxGroup)
And similar errors for option, button and select. We are using antd package. How can we get this problem fixed?
can you please upgrade your @plasmicpkgs/antd
Updated to 2.0.67, now I get:
ERROR in ./node_modules/@plasmicpkgs/antd/skinny/registerButton.esm.js 1:0
Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (1:0)
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
* ./node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
> import registerComponent from '@plasmicapp/host/registerComponent';
| import { Button as Button$1 } from 'antd';
| const Button = Button$1;
What framework are you using?
Just plain react. Here are the dependencies in package.json:
"dependencies": {
"@plasmicapp/cli": "^0.1.186",
"@plasmicapp/host": "^1.0.79",
"@plasmicapp/react-web": "^0.2.227",
"@plasmicpkgs/antd": "^2.0.67",
"@reduxjs/toolkit": "^1.9.3",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.11.59",
"@types/react": "^18.0.20",
"@types/react-dom": "^18.0.6",
"antd": "^4.24.8",
"plotly.js": "^2.23.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-plotly.js": "^2.6.0",
"react-redux": "^8.0.5",
"react-scripts": "5.0.1",
"react-sketch-canvas": "^6.2.0",
"typescript": "^4.8.3",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@types/plotly.js": "^2.12.18",
"@types/react-plotly.js": "^2.6.0"
}
could you try updating to the latest @plasmicpkgs/antd again?
Works well now. Thanks a lot!