我想问下, does not provide an export named 'default' #313
Unanswered
anyone0034
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我想问下,这个怎么解决:react.development.js:1309 Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@antv_xflow.js?v=08b9d776' does not provide an export named 'default' (at index.jsx:4:8)
`import React from 'react';
import { Button } from '@alifd/next';
import styles from './index.module.css';
import IAppLoad from '@antv/xflow';
import { XFlow, createGraphConfig, XFlowCanvas, CanvasToolbar } from '@antv/xflow';
const Guide = () => {
return (
Welcome to icejs!
);
};
export default Guide;
`
还没开始使用,只是仅仅引入了,就报错。
{ "name": "@alifd/fusion-design-pro-js", "version": "0.1.0", "description": "", "dependencies": { "@alifd/next": "^1.21.0", "@alifd/theme-design-pro": "0.x", "@antv/g6": "^4.6.18", "@antv/x6": "^1.32.3", "@antv/x6-react-components": "^1.1.15", "@antv/x6-react-shape": "^1.6.0", "@antv/xflow": "^1.0.51", "@builder/vite-service": "^2.1.3", "@types/react": "^16.9.13", "@types/react-dom": "^16.9.4", "ahooks": "^3.7.0", "antd": "^4.22.2", "bizcharts": "^4.1.19", "build-plugin-esbuild": "^1.6.2", "dayjs": "^1.11.4", "echarts": "^5.3.3", "echarts-for-react": "^3.0.2", "icejs": "^0.0.1", "insert-css": "^2.0.0", "jquery": "^3.6.0", "jsplumb": "^2.15.6", "lodash.debounce": "^4.0.8", "moment": "^2.24.0", "path-to-regexp": "^6.2.1", "prop-types": "^15.5.8", "querystring": "^0.2.1", "react": "^17.0.2", "react-dom": "^17.0.2", "react-flow-renderer": "^10.3.16", "react-intl": "^2.8.0", "react-jwchat": "^1.2.1", "react-sortablejs": "^5.0.0", "sortablejs": "^1.12.0", "url": "^0.11.0" }, "devDependencies": { "@iceworks/spec": "^1.0.0", "build-plugin-antd": "^0.1.4", "build-plugin-ignore-style": "^0.1.0", "build-plugin-moment-locales": "^0.1.0", "eslint": "^7.30.0", "ice.js": "^2.0.0", "stylelint": "^13.2.0", "postcss-pxtorem": "^5.1.1" }, "scripts": { "start": "icejs start --mode local", "build": "icejs build --mode prod", "lint": "npm run eslint && npm run stylelint", "eslint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./", "eslint:fix": "npm run eslint -- --fix", "stylelint": "stylelint \"**/*.{css,scss,less}\"" }, "repository": { "type": "git", "url": "https://github.com/alibaba-fusion/materials/tree/master/scaffolds/fusion-design-pro-js" }, "private": true, "originTemplate": "@alifd/fusion-design-pro-js" }
Beta Was this translation helpful? Give feedback.
All reactions