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

Haul support for React Native not working on Windows #2575

Closed
danielkcz opened this issue Dec 27, 2017 · 1 comment
Closed

Haul support for React Native not working on Windows #2575

danielkcz opened this issue Dec 27, 2017 · 1 comment

Comments

@danielkcz
Copy link
Contributor

danielkcz commented Dec 27, 2017

Issue details

I am trying to configure storybook-react-native with Haul because I want to use Typescript loader. On my Windows machine I end up with this error.

basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at createScript (vm.js:80:10)

Steps to reproduce

Run following on the Windows machine
storybook start -p 7007 --haul webpack.haul.storybook.js

Please specify which version of Storybook and optionally any affected addons that you're running

  • storybook/react-native: 3.3.1

Affected platforms

Windows 10

Screenshots / Screencast / Code Snippets (Optional)

webpack.haul.storybook.js

module.exports = ({ platform }, { module, resolve }) => ({
  entry: `./storybook/index.js`,
  module: {
    ...module,
    rules: [
      {
        test: /\.tsx?$/,
        loader: 'ts-loader',
      },
      ...module.rules,
    ],
  },
  resolve: {
    ...resolve,
    extensions: [
      '.ts',
      '.tsx',
      `.${platform}.ts`,
      '.native.ts',
      `.${platform}.tsx`,
      '.native.tsx',
      ...resolve.extensions,
    ],
  },
})
@Hypnosphi
Copy link
Member

Fix released as 3.3.4

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

2 participants