Git Product home page Git Product logo

blog's People

Stargazers

 avatar

Watchers

 avatar  avatar

blog's Issues

index.html不引入bundle.js

你好,我想问一下你,你的index.html里面没有引入webpack打包后的bundle.js,那你是如何启动项目的

fetch参数的正确设置

let data={username:"jack",password:"123}
fetch("user",{ 
    method:"POST",
    headers:{
    "Content-Type": "application/x-www-form-urlencoded",
    }, 
    body:"username="+data.username+"&password="+data.password
}).then(
    response => response.json()
).then(
    data => console.log(data)
).catch(
    e => console.error(e)
);

求助

为什么我都启动了 然后在 npm run dev npm run api 这就总是报错呢,能指点一下吗

webpack编译报错

src/index.js和src/js/containers/nav.js中都有引入的组件找不到的错误,目测是大小写搞错了

ie8

现在的代码应该不能跑在ie8下吧

npm run dist【dist_linux】出错

我是node初学,问一下这是什么原因,怎么解决呢?

false 'production'
/blog/src/server.js:11
import React, { Component } from 'react'
^^^^^^
SyntaxError: Unexpected token import
    at Object.exports.runInThisContext (vm.js:78:16)
    at Module._compile (module.js:543:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/blog/app.js:41:18)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:420:7)

项目上线

请问你的项目放在什么主机上啊?国内有nodejs主机吗?

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.