ModuleNotFoundError:找不到模块:错误:无法解析“./Select-d680feef.esm.js”

时间:2021-04-27 03:31:14

标签: reactjs

当我在没有 docker 的情况下运行 npm run build 时,它正在工作。但是什么时候 docker build 相同的 docker build 会失败。

请检查我分享的截图是否有错误。

enter image description here

    {
        "name": "nextjs",
        "version": "5.0.0",
        "private": true,
        "dependencies": {
            "@emotion/cache": "^11.1.3",
            "@emotion/react": "^11.1.5",
            "@emotion/server": "^11.0.0",
            "@emotion/styled": "^11.1.5",
            "@material-ui/core": "^4.11.3",
            "@material-ui/icons": "^4.11.2",
            "@svgr/webpack": "^5.5.0",
            "axios": "^0.21.1",
            "clsx": "^1.1.1",
            "formik": "^2.2.6",
            "material-ui-dropzone": "^3.5.0",
            "next": "^10.1.2",
            "next-auth": "^3.13.3",
            "next-images": "^1.7.0",
            "next-iron-session": "^4.1.12",
            "notistack": "^1.0.5",
            "prop-types": "^15.7.2",
            "react": "17.0.2",
            "react-dom": "17.0.2",
            "react-image-crop": "^8.6.6",
            "react-items-carousel": "^2.8.0",
            "react-lazy-load-image-component": "^1.5.1",
            "react-photo-gallery": "^8.0.0",
            "react-router-dom": "^5.2.0",
            "react-select": "^4.3.0",
            "react-social-login": "^3.4.13",
            "react-tag-autocomplete": "^6.1.0",
            "react-tag-input-component": "^1.0.7",
            "swr": "^0.5.5",
            "yup": "^0.32.9"
        },
        "scripts": {
            "dev": "next",
            "build": "next build",
            "start": "next start",
            "post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest"
        },
        "devDependencies": {
            "dotenv": "^8.2.0"
        }
    }

这是我的 package.json 文件。 请看一下

0 个答案:

没有答案
相关问题