Skip to content
This repository has been archived by the owner on May 13, 2019. It is now read-only.

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

Open
as8691258 opened this issue May 16, 2017 · 0 comments

Comments

@as8691258
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant