LayaBox2.0 Engining,使用Typescript baseurl

时间:2019-03-24 15:45:05

标签: javascript typescript tsconfig

在LayaBox中,我将yaxis=dict( autorange=True, showgrid=True, zeroline=True, dtick=5, gridcolor='rgb(255, 255, 255)', gridwidth=1, zerolinecolor='rgb(255, 255, 255)', zerolinewidth=2, automargin=True, ), 中的margin=dict( l=40, r=30, b=80, t=3*max(Q3), ), 设置为使用baseurl = "./src"中的tsconfig.json而不是import ViewBase中的"core/view/ViewBase"

但是我编译代码并得到错误:

"../../../core/view/ViewBase"

LayaBox2.0,打字稿

tsconfig.json

Error: Cannot find module 'core/view/ViewBase' from 'E:\developer\project\svn_wjbj\endLess\src'
at E:\developer\LayaAirIDE_beta\resources\app\node_modules\browser-resolve\node_modules\resolve\lib\async.js:46:17
at process (E:\developer\LayaAirIDE_beta\resources\app\node_modules\browser-resolve\node_modules\resolve\lib\async.js:173:43)
at ondir (E:\developer\LayaAirIDE_beta\resources\app\node_modules\browser-resolve\node_modules\resolve\lib\async.js:188:17)
at load (E:\developer\LayaAirIDE_beta\resources\app\node_modules\browser-resolve\node_modules\resolve\lib\async.js:69:43)
at onex (E:\developer\LayaAirIDE_beta\resources\app\node_modules\browser-resolve\node_modules\resolve\lib\async.js:92:31)
at E:\developer\LayaAirIDE_beta\resources\app\node_modules\browser-resolve\node_modules\resolve\lib\async.js:22:47
at FSReqWrap.oncomplete (fs.js:114:15)

0 个答案:

没有答案