question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

trying to import actions fails

See original GitHub issue

Describe 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:

  1. install packages: npm install --save-dev @storybook/react-native @storybook/addon-actions @storybook/addon-ondevice-actions
  2. add the import line of code shown above to <project root>/storybook/stories/index.js
  3. try to run the app
  4. 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:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
stale[bot]commented, Aug 11, 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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found