在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)