Code Monkey home page Code Monkey logo

musicradio's People

Contributors

sanmmm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

musicradio's Issues

npm run build 打包失败

@ build /root/MusicRadio/frontend
umi build

✖ Webpack
Compiled with some errors in 1.74m

ERROR Failed to compile with 3 errors 4:38:12 ├F10: PM┤

This dependency was not found:

  • config/settings in ./src/layouts/index.tsx, ./src/layouts/header.tsx and 1 other

To install it, you can run: npm install --save config/settings
Child

ERROR in ./src/layouts/index.tsx
Module not found: Error: Can't resolve 'config/settings' in '/root/MusicRadio/frontend/src/layouts'
 @ ./src/layouts/index.tsx 10:0-39 37:71-79
 @ ./src/.umi-production/core/routes.ts
 @ ./src/.umi-production/umi.ts
 @ multi ./node_modules/@umijs/bundler-webpack/lib/getConfig/runtimePublicPathEntry.js ./src/.umi-production/umi.ts

ERROR in ./src/layouts/header.tsx
Module not found: Error: Can't resolve 'config/settings' in '/root/MusicRadio/frontend/src/layouts'
 @ ./src/layouts/header.tsx 31:0-39 128:11-19 240:5-13 240:26-34 266:113-121 271:30-38
 @ ./src/layouts/index.tsx
 @ ./src/.umi-production/core/routes.ts
 @ ./src/.umi-production/umi.ts
 @ multi ./node_modules/@umijs/bundler-webpack/lib/getConfig/runtimePublicPathEntry.js ./src/.umi-production/umi.ts

ERROR in ./src/services/socket.ts
Module not found: Error: Can't resolve 'config/settings' in '/root/MusicRadio/frontend/src/services'
 @ ./src/services/socket.ts 2:0-39 14:51-59
 @ ./src/models/playList.ts
 @ ./src/.umi-production/plugin-dva/dva.ts
 @ ./src/.umi-production/plugin-dva/runtime.tsx
 @ ./src/.umi-production/core/plugin.ts
 @ ./src/.umi-production/umi.ts
 @ multi ./node_modules/@umijs/bundler-webpack/lib/getConfig/runtimePublicPathEntry.js ./src/.umi-production/umi.ts

ERROR in /root/MusicRadio/frontend/src/components/roomVisualization/index.tsx
[tsl] ERROR in /root/MusicRadio/frontend/src/components/roomVisualization/index.tsx(315,23)
      TS2769: No overload matches this call.
  Overload 1 of 2, '(props: Readonly<ReactEchartsCorePropsTypes>): ReactEchartsCore', gave the following error.
    Type '{ title: {}; visualMap: ({ type: string; splitNumber: number; min: number; max: number; dimension: number; seriesIndex: number; showLabel: boolean; show: boolean; inRange: { color: string[]; symbolSize: number[]; }; outOfRange: { ...; }; } | { ...; })[]; geo: { ...; }; series: ({ ...; } | { ...; })[]; }' is not assignable to type 'EChartOption<Series>'.
      Types of property 'visualMap' are incompatible.
        Type '({ type: string; splitNumber: number; min: number; max: number; dimension: number; seriesIndex: number; showLabel: boolean; show: boolean; inRange: { color: string[]; symbolSize: number[]; }; outOfRange: { ...; }; } | { ...; })[]' is not assignable to type 'VisualMap[]'.
          Type '{ type: string; splitNumber: number; min: number; max: number; dimension: number; seriesIndex: number; showLabel: boolean; show: boolean; inRange: { color: string[]; symbolSize: number[]; }; outOfRange: { ...; }; } | { ...; }' is not assignable to type 'VisualMap'.
            Type '{ type: string; splitNumber: number; min: number; max: number; dimension: number; seriesIndex: number; showLabel: boolean; show: boolean; inRange: { color: string[]; symbolSize: number[]; }; outOfRange: { ...; }; }' is not assignable to type 'VisualMap'.
              Type '{ type: string; splitNumber: number; min: number; max: number; dimension: number; seriesIndex: number; showLabel: boolean; show: boolean; inRange: { color: string[]; symbolSize: number[]; }; outOfRange: { ...; }; }' is not assignable to type 'Piecewise'.
                Types of property 'type' are incompatible.
                  Type 'string' is not assignable to type '"piecewise"'.
  Overload 2 of 2, '(props: ReactEchartsCorePropsTypes, context?: any): ReactEchartsCore', gave the following error.
    Type '{ title: {}; visualMap: ({ type: string; splitNumber: number; min: number; max: number; dimension: number; seriesIndex: number; showLabel: boolean; show: boolean; inRange: { color: string[]; symbolSize: number[]; }; outOfRange: { ...; }; } | { ...; })[]; geo: { ...; }; series: ({ ...; } | { ...; })[]; }' is not assignable to type 'EChartOption<Series>'.

ERROR in /root/MusicRadio/frontend/src/layouts/header.tsx
[tsl] ERROR in /root/MusicRadio/frontend/src/layouts/header.tsx(21,22)
      TS2307: Cannot find module 'config/settings' or its corresponding type declarations.

ERROR in /root/MusicRadio/frontend/src/layouts/index.tsx
[tsl] ERROR in /root/MusicRadio/frontend/src/layouts/index.tsx(13,22)
      TS2307: Cannot find module 'config/settings' or its corresponding type declarations.

ERROR in /root/MusicRadio/frontend/src/services/socket.ts
./src/services/socket.ts
[tsl] ERROR in /root/MusicRadio/frontend/src/services/socket.ts(4,22)
      TS2307: Cannot find module 'config/settings' or its corresponding type declarations.

null
build failed
Error: build failed
at /root/MusicRadio/frontend/node_modules/@umijs/bundler-webpack/lib/index.js:108:27
at finalCallback (/root/MusicRadio/frontend/node_modules/webpack/lib/MultiCompiler.js:254:12)
at /root/MusicRadio/frontend/node_modules/webpack/lib/MultiCompiler.js:277:6
at done (/root/MusicRadio/frontend/node_modules/neo-async/async.js:2931:13)
at runCompilers (/root/MusicRadio/frontend/node_modules/webpack/lib/MultiCompiler.js:181:48)
at /root/MusicRadio/frontend/node_modules/webpack/lib/MultiCompiler.js:188:7
at /root/MusicRadio/frontend/node_modules/webpack/lib/MultiCompiler.js:270:7
at finalCallback (/root/MusicRadio/frontend/node_modules/webpack/lib/Compiler.js:257:39)
at /root/MusicRadio/frontend/node_modules/webpack/lib/Compiler.js:273:13
at AsyncSeriesHook.eval [as callAsync] (eval at create (/root/MusicRadio/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), :40:1)
at AsyncSeriesHook.lazyCompileHook (/root/MusicRadio/frontend/node_modules/tapable/lib/Hook.js:154:20)
at onCompiled (/root/MusicRadio/frontend/node_modules/webpack/lib/Compiler.js:271:21)
at /root/MusicRadio/frontend/node_modules/webpack/lib/Compiler.js:681:15
at eval (eval at create (/root/MusicRadio/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), :9:1)
at /root/MusicRadio/frontend/node_modules/ts-loader/dist/after-compile.js:36:9
at AsyncSeriesHook.eval [as callAsync] (eval at create (/root/MusicRadio/frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), :5:1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ build: umi build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-07-11T08_38_12_747Z-debug.log
[root@66 frontend]# npm install --save config/settings
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/config/settings.git
npm ERR!
npm ERR! Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-07-11T09_42_54_052Z-debug.log

无法注册管理员

使用Docker搭建,外部redis,网易云API也是使用Docker
可以正常听歌

使用宝塔的Docker管理器,进入Docker的命令行,前期没留意提醒编辑过settings.default.js
然后复制settings.default.js到/app/backend/config/settings.js
编辑对应行,并重启Docker

最后找到/app/backend/build/backend/default/settings.default.js

编辑后重启Docker解决

这个项目没有维护了吗

自行搭建环境会报错 var session_1 = __importDefault(require("root/lib/session"));
var handler_1 = __importDefault(require("root/lib/handler")); 这个写法是自己本地root的文件吗 无法找到这个文件

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.