Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置了linaria后Hot Module Replacement失效 #9589

Closed
Hicbik opened this issue Jun 23, 2021 · 1 comment
Closed

配置了linaria后Hot Module Replacement失效 #9589

Hicbik opened this issue Jun 23, 2021 · 1 comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@Hicbik
Copy link

Hicbik commented Jun 23, 2021

相关平台

H5

浏览器版本: 微信开发者工具stable 1.03
使用框架: React

复现步骤

import { View } from '@tarojs/components';
import { styled } from 'linaria/react';
import React from 'react';


const Demo = () => {
  return (
    <Wrapper>
更改会刷新游览器
    </Wrapper>
  );
};

const Wrapper = styled(View)`
  height: 100%;
  background: #f0f0f0;
`;


export default Demo;

期望结果

Hot Module Replacement正常运行

实际结果

Hot Module Replacement失效

环境信息


  Taro CLI 3.2.10 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 12.16.3 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.4 - C:\Users\shiyi\AppData\Roaming\npm\yarn.CMD
      npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD

@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Jun 23, 2021
@ZakaryCode ZakaryCode moved this to 框架 in H5 Apr 10, 2023
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
@ZakaryCode
Copy link
Contributor

可以参考这里 #15075 (comment) 修复

@github-project-automation github-project-automation bot moved this from 框架 to Done in H5 Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

2 participants