-
Notifications
You must be signed in to change notification settings - Fork 16
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
starter kit #356
Comments
Hi, @LexRiver! |
No, seems like it's some error in my webpack config. Now I've switched to rollup and it works for me. |
Here's a part of my webpack config for processing tsx files: {
test: /\.tsx$/,
use: [
{
loader: 'babel-loader',
options: {
plugins: [['babel-plugin-vidom-jsx', { autoRequire: false }]]
}
},
{
loader: 'ts-loader',
options: {
transpileOnly: true,
compilerOptions: {
sourceMap: true,
importHelpers: true,
jsx: 'preserve'
}
}
}
]
} |
yes, it seems to work now, but I have a runtime error |
No, it isn't. You need to import // MyComponent.tsx
import * as vidom from 'vidom';
class MyComponent extends vidom.Component {
onRender(): vidom.Node {
return (
<div>content</div>
);
}
} |
vidom-test-webpack.zip |
Hello, I have some strange errors with the recent versions when trying to import component from another file, like
I know it is somehow related to my typescript settings.
Can you please provide the very minimal project that works for you.
I'm looking for proper settings for
I think that it would be useful for other users also.
react has
create-react-app
to get started but vidom is missing it.The text was updated successfully, but these errors were encountered: