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.

Issue Description

I did:

npm install next-usequerystate

and then added to my code:

import { useQueryState } from 'next-usequerystate'

I got this error:

Failed to compile

./node_modules/next-usequerystate/dist/esm/index.js
Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> export * from './defs';
| export * from './useQueryState';
| export * from './useQueryStates'

Screen Shot 2021-08-04 at 1 13 06 PM

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
msabramocommented, Sep 18, 2021

Yep I’m using 1.4.0-beta.5 and it’s working well for me.

$ npm list next-usequerystate
next-stock-prototype@0.1.0 /Users/abramowi/dev/adobe/sensei/next-stock-prototype
└── next-usequerystate@1.4.0-beta.5

Thank you!

1reaction
github-actions[bot]commented, Sep 7, 2021

🎉 This issue has been resolved in version 1.4.0-beta.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python - fails importing package - Stack Overflow
I have trouble importing package. My file structure is like this: filelib/ __init__.py converters/ __init__.py cmp2locus.py modelmaker/ ...
Read more >
[Satellite 6] Content View import fails with 'no library repository ...
Issue. We are importing a Content View (CV) from one Satellite server to another as part of the backup/migration/sync procedure:.
Read more >
Troubleshooting an import that fails - ServiceNow - Now Support
This article guides you through the process of troubleshooting an import that fails. It provides steps to help you eliminate common causes for...
Read more >
Slack import fails with Failed to start import operation #26479
Description: Slack import fails to start. The file uploads and shows all the correct users and channels. Messages is grayed out.
Read more >
How to Fix “Import Failed” Mail Error on Mac - OSXDaily
Fix “Import Failed – Error Occurred During Import” in Mail for Mac · Quit out of Mail app if it's still open ·...
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