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

Storybook not working with a symlink for source file #5640

Closed
hopewise opened this issue Feb 18, 2019 · 2 comments
Closed

Storybook not working with a symlink for source file #5640

hopewise opened this issue Feb 18, 2019 · 2 comments
Labels

Comments

@hopewise
Copy link

Describe the bug
I am trying to use storybook with react-rails which is configured to store reactjs files at app/assets/javascripts/components.

The storybook project is outside the rails app, and have the files symlinked for files inside rails app at app/assets/javascripts/components

I got this error when starting storybook:

ERROR in /Users/samir/Documents/projects/backend/app/assets/javascripts/components/App.js 7:4
Module parse failed: Unexpected token (7:4)
You may need an appropriate loader to handle this file type.

However, if I use the file directly in storybook without symlink it will compile normally without any issue, in the error above, it shows the source file location not the symlinked file.

To Reproduce
Steps to reproduce the behavior:

  1. ln -s FULL_PATH_TO /app/assets/javascripts/components/App.js FULL_PATH_TO /storybook/devops/src/App.js
  2. start storybook

Expected behavior
To compile App.js normally

System:

  • OS: MacOS
  • Device: Macbook Pro 2018
  • Browser: chrome
  • Framework: react
  • Version: 4.1.11

Additional context
Add any other context about the problem here.

@hopewise hopewise changed the title Storybook not following a symlink for source file Storybook not working with a symlink for source file Feb 18, 2019
@stale
Copy link

stale bot commented Mar 11, 2019

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

@stale stale bot added the inactive label Mar 11, 2019
@stale
Copy link

stale bot commented Apr 10, 2019

Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

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

No branches or pull requests

1 participant