Coder Social home page Coder Social logo

从零开始搭建项目失败 about beidou HOT 8 CLOSED

alibaba avatar alibaba commented on May 1, 2024
从零开始搭建项目失败

from beidou.

Comments (8)

leeyu0329 avatar leeyu0329 commented on May 1, 2024

项目启动不了

from beidou.

devrsi0n avatar devrsi0n commented on May 1, 2024

把你的 config 目录下的配置贴出来看看

from beidou.

leeyu0329 avatar leeyu0329 commented on May 1, 2024

const path = require('path');

module.exports = (appInfo) => {
const config = {};

config.react = {
    beautify: false,
    cache: true,
    static: false,
    doctype: '<!DOCTYPE html>',
    assetHost: '',
    assetPath: ''
};

config.view = {
    defaultViewEngine: 'react',
    defaultExtension: '.jsx',
    root: `${path.join(appInfo.baseDir, 'app/views')},${path.join(appInfo.baseDir, 'client')}`
};

return config;

};

from beidou.

leeyu0329 avatar leeyu0329 commented on May 1, 2024

从教程的上面到下面来看,还没有涉及到配置项,可能是教程不全

from beidou.

devrsi0n avatar devrsi0n commented on May 1, 2024

你的 client 目录下有 index.jsx 这个入口文件吗?删了就会报这个错。

from beidou.

leeyu0329 avatar leeyu0329 commented on May 1, 2024

哦哦,我晓得了,真是因为没有入口文件,不过这个文件从零开始搭建项目的时候一开始就没有,谢谢啦

from beidou.

devrsi0n avatar devrsi0n commented on May 1, 2024

麻烦下次提交 issue 说明详细一些,只有一个截图定位问题比较麻烦。

from beidou.

leeyu0329 avatar leeyu0329 commented on May 1, 2024

好的

from beidou.

Related Issues (20)

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.