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

Transpiling error when importing prefs-rcl in my app #7

Open
mannycolon opened this issue Jan 18, 2021 · 2 comments
Open

Transpiling error when importing prefs-rcl in my app #7

mannycolon opened this issue Jan 18, 2021 · 2 comments
Assignees

Comments

@mannycolon
Copy link

error - /Users/mannycolon/Projects/create-app/node_modules/prefs-rcl/dist/index.js:26
import * as core from './core';

SyntaxError: Cannot use import statement outside a module

@mannycolon
Copy link
Author

All I did was install prefs-rcl and import it in the app as follows:

import { usePrefs } from 'prefs-rcl'

@mannycolon
Copy link
Author

@Ashersam ^^^ This could be helpfull

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