NervJS / tarojs-plugin-ssr

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

with-less示例执行报错 #18

Closed K-O-88888888 closed 1 year ago

K-O-88888888 commented 1 year ago

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;

SyMind commented 1 year ago

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

K-O-88888888 commented 1 year ago

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

SyMind commented 1 year ago

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

K-O-88888888 commented 1 year ago

好吧.JD源不是最新版。

SyMind commented 1 year ago

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