taofed / react-web

A framework for building web apps with React Native compatible API.
Other
3.36k stars 448 forks source link

运行start后报错 ERROR in ./app/entry.js Module not found: Error: Cannot resolve module 'domain/component' #250

Open as8691258 opened 7 years ago

as8691258 commented 7 years ago

entry.js中是import 引入的模块

如下: import {Button, flexCenter} from "basic" import {ZNavbar} from "domain/component" import {COLOR_NAV_DARK, COLOR_TITLE} from "domain/def" import {Routes} from "domain/page" import {get_token} from "domain/api/apis" import {init} from "domain/redux/init" // 定义全局函数 import "domain/def/global.function.def" import {App} from "./app"

只要是自定义的全部报错找不到模块。 用的版本如下: react-web -v react-web-cli: 0.0.4 react-web: 0.4.6

react-native -v react-native-cli: 2.0.1 react-native: 0.40.0

image

请大牛分析下原因:sq