NervJS / tarojs-plugin-ssr

让 Taro H5 支持 Pre-rendering、SSR 和 ISR,极致的首屏速度🚀,利于 SEO🔍

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

with-less示例执行报错

K-O-88888888 opened this issue · comments

error - ./src/app.less
Module parse failed: Unexpected token (1:5)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

body {
| padding: 0!important;
| margin: 0!important;
wait - compiling /_error (client and server)...
error - ./src/app.less
Module parse failed: Unexpected token (1:5)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
body {
| padding: 0!important;
| margin: 0!important;

examples/with-less 目录下,将 yarn.lock 移除使用 yarn 重新安装依赖试一试?需要保证插件保持在最新版本。

examples/with-less下并没有yarn.lock文件呢。初始化安装执行yarn dev:nextjs就会报错。插件安装后是2.0.0版本

@K-O-88888888 需要使用 2.0.9 版本,请重新在 examples/with-less 目录下安装依赖。

好吧.JD源不是最新版。

@K-O-88888888 额,你是JD的么?