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

[BUG] #175

Open
a98ffasf opened this issue Feb 21, 2024 · 0 comments
Open

[BUG] #175

a98ffasf opened this issue Feb 21, 2024 · 0 comments

Comments

@a98ffasf
Copy link

Describe the bug
A clear and concise description of what the bug is.

请先尝试升级 San、San-SSR 到最新的版本。

To Reproduce

请提供一个可以复现的最小 case,例如:

反解错误时:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Bug Report</title>
</head>

<body>
    <script src="./node_modules/san/dist/san.js"></script>
    <div id="root">
        <!-- San-SSR 的输出结果 -->
    </div>
    <script>
    // 组件定义
    let MyApp = san.defineComponent({
        template: ``,
    })
    let myApp = new MyApp({el: document.getElementById('root').firstElementChild});
    myApp.attach(document.getElementById('root'));
    </script>
</body>
</html>

编译错误时:

const san = require('san')

const MyComponent = san.defineComponent({
    template: '',
    initData () {
        return {
        }
    }
})

module.exports = MyComponent

Versions (please complete the following information):

  • San: [e.g. x.x.x]
  • San-SSR: [e.g. x.x.x]

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant