-
Notifications
You must be signed in to change notification settings - Fork 194
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
Issue with Typescript React Native setup #612
Comments
@arundilipan Can you copy & paste content of |
@zamotany Similar problem with TypeScript export default makeConfig({
}) |
@isuhar
If that's the cause, I think I'll add it to a default config. |
tried this: import { withPolyfills, makeConfig } from "@haul-bundler/preset-0.60";
export default makeConfig({
bundles: {
index: {
entry: withPolyfills('./index.js'),
},
},
}); then I basically did this export default makeConfig({
bundles: {
index: {
entry: withPolyfills('./index.js'),
transform({ env, config }) {
config.module.rules = [
{
test: /\.tsx?$/,
loader: 'ts-loader'
},
...config.module.rules,
];
config.resolve.extensions = [
'.ts',
'.tsx',
`.${env.platform}.ts`,
'.native.ts',
`.${env.platform}.tsx`,
'.native.tsx',
...config.resolve.extensions,
]
},
},
},
}); I've since started a new react-native project without haul. I was originally interested in Haul because of the possibility of hooking React Native up to Purescript through Webpack. |
This was a problem
Must be
|
@isuhar Ah, yes, in transform({ config }) {
// ...
config = merge.strategy({ "module.rules": "replace", "stats": "replace" })(
config, resolver(options)
);
return config;
} |
Environment
Running this on macOS 10.14.5.
npm
:6.9.0
node
:12.6.0
react-native
:0.60.4
react-native-cli
:2.0.1
Description
Package is not building on
yarn start haul
, getting an error that looks like in the terminal:Reproducible Demo
react-native init Project --template typescript
haul
usingyarn add --dev @haul-bundler/cli
haul
usingyarn haul init
haul
usingyarn haul start
react-native run-ios
The text was updated successfully, but these errors were encountered: