You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vite v4.5.14 building for production...
✓ 2 modules transformed.
[vite:legacy-post-process] [BABEL] unknown file: @babel/helper-compilation-targets: 'development' is not a valid target
- Did you mean 'deno'? (While processing: "base$1")
✓ built in 724ms
/Users/admin/github/test-taro-app/node_modules/.pnpm/@babel+helper-compilation-targets@7.27.2/node_modules/@babel/helper-compilation-targets/lib/index.js:60
throw new Error(v.formatMessage(`'${target}' is not a valid target ^Error: [BABEL] unknown file: @babel/helper-compilation-targets: 'development' is not a valid target- Did you mean 'deno'? (While processing: "base$1")
执行npm run dev:h5打开浏览器后,页面报错:Uncaught SyntaxError: Unexpected token '<' (at (index):23:7)
看源码里,好像是这个script未正确注入:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
taro版本:"@tarojs/taro": "4.1.7"
新建完项目后直接
npm run build:h5报错如下:执行
npm run dev:h5打开浏览器后,页面报错:Uncaught SyntaxError: Unexpected token '<' (at (index):23:7)看源码里,好像是这个script未正确注入:
Beta Was this translation helpful? Give feedback.
All reactions