JiHong88 / suneditor

Pure javascript based WYSIWYG html editor, with no dependencies.
http://suneditor.com
MIT License
1.67k stars 308 forks source link

빌드시 [commonjs--resolver] Expected ';', '}' or <eof> #1354

Closed ravenkim closed 6 months ago

ravenkim commented 6 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

` { "name": "rms_front", "packageManager": "yarn@4.0.2", "private": true, "version": "0.0.0", "type": "module", "scripts": { "dev": "vite", "build": "vite build", "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview" }, "dependencies": { "@ant-design/icons": "^5.2.6", "@dnd-kit/core": "^6.1.0", "@dnd-kit/modifiers": "^7.0.0", "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", "@reduxjs/toolkit": "^1.9.7", "antd": "^5.12.1", "axios": "^1.6.2", "connected-react-router": "^6.9.3", "framer-motion": "^10.16.12", "hangul-js": "^0.2.6", "history": "^5.3.0", "jwt-decode": "^4.0.0", "react": "^18.2.0", "react-cookie": "^6.1.1", "react-dom": "^18.2.0", "react-highlight-words": "^0.20.0", "react-redux": "^8.1.3", "react-router": "^6.20.0", "react-router-dom": "^6.20.0", "react-slick": "^0.29.0", "redux": "^4.2.1", "redux-first-history": "^5.1.1", "redux-saga": "^1.2.3", "slick-carousel": "^1.8.1", "suneditor": "^2.45.1", "suneditor-react": "^3.6.1", "sweetalert2": "^11.10.2" }, "peerDependencies": { "eslint": "^8.53.0" }, "devDependencies": { "@types/react": "^18.2.37", "@types/react-dom": "^18.2.15", "@vitejs/plugin-react": "^4.2.0", "autoprefixer": "^10.4.16", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.4", "postcss": "^8.4.32", "sass": "^1.69.7", "tailwindcss": "^3.3.6", "vite": "^5.0.0" } }

`

이렇게 사용하고 있고

yarn build시

다음과 같은 오류가 나옵니 dhfb 다 .

weyrloc commented 6 months ago

Hi This issue is fix in the last commit but it's not published yet. Temporrialy you can replace "suneditor": "^2.45.1", by "suneditor": "git@github.com:JiHong88/suneditor.git", in your package.json