trying to import actions fails
See original GitHub issueDescribe the bug Trying to import actions from for the on device add-on as in
import { action } from '@storybook/addon-ondevice-actions';
fails with
Unable to resolve "core-js/modules/es.object.define-property" from "node_modules/@storybook/addon-ondevice-actions/dist/index.js"
To Reproduce Steps to reproduce the behavior:
- install packages:
npm install --save-dev @storybook/react-native @storybook/addon-actions @storybook/addon-ondevice-actions
- add the
import
line of code shown above to<project root>/storybook/stories/index.js
- try to run the app
- see error
Expected behavior I expected this to work.
System:
- OS: macOS 10.14.5 (18F132) (latest)
- Device: Xcode Version 10.2.1 (10E1001) Simulator (latest)
- Browser: Chrome 74.0.3729.169 (Official Build) (64-bit) (latest; AFAICT not involved though)
- Framework: React Native
- npm packages:
$ npm list --depth=0
<project name>@ <path to project root>
βββ @storybook/addon-actions@5.1.9
βββ @storybook/addon-ondevice-actions@5.1.9
βββ @storybook/react-native@5.1.9
βββ babel-preset-expo@5.0.0
βββ expo@32.0.6
βββ expo-postpublish-slack-notify@1.2.0
βββ expokit@32.1.1
βββ react@16.5.0
βββ react-native@0.57.1
βββ react-native-circular-progress@0.2.0
βββ react-native-dotenv@0.2.0
βββ react-native-elements@1.1.0
βββ react-native-svg@9.4.0
βββ react-navigation@3.9.1
βββ react-redux@6.0.1
βββ redux@4.0.1
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Solved: Getting an error when trying to run an Import Acti...
Hi,. I'm new to Anaplan and am trying to automate the process of refreshing data from a file that has been previously uploaded...
Read more >Ask Question - Stack Overflow
React JS import error - Module not found: You attempted to import ../actions which falls outside of the project src/ directory Β· javascript...
Read more >Review and troubleshoot import errors
Below, learn how to resolve errors detected during an import, download an error file, view error details, and correct issues in your import...
Read more >@actions/core - npm
Start using @actions/core in your project by running `npm i @actions/core`. ... typescript import * as core from '@actions/core';Β ...
Read more >Troubleshoot CSV Import - AppSheet Help
If the CSV Import data action fails, the following tips may help you resolve the problem. EnumList field import fails with "failed Valid_If...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@z00m1n more info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#corejs-3
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!