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.

using axios-curlirize on node app

See original GitHub issue

Hi, I tried to use this in node app but it gives me an error

node_modules/axios-curlirize/src/curlirize.js:1
import { CurlHelper } from './lib/CurlHelper';
       ^

SyntaxError: Unexpected token {
    at Module._compile (internal/modules/cjs/loader.js:811:22)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:879:10)
    at Module.load (internal/modules/cjs/loader.js:731:32)
    at Function.Module._load (internal/modules/cjs/loader.js:644:12)
    at Module.require (internal/modules/cjs/loader.js:771:19)
    at require (internal/modules/cjs/helpers.js:68:18)

Not sure what’s going on. Is is suppose to work only in js engine that supports es modules?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
shesl-meowcommented, Aug 10, 2021

Experiencing same issue in 1.4.0

2reactions
darekzakcommented, Oct 9, 2019

I checked and still doesn’t work. After installing this package with yarn(and also I checked with npm) inside node_modules/axios-curlirize there is no dist directory. I checked this on completely fresh project. There is no node_modules directory inside node_modules/axios-curlirize - so there is no babel. Postinstall script because of this doesn’t do anything - at least this is how I understand it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

using axios-curlirize on node app · Issue #20 - GitHub
Hi, I tried to use this in node app but it gives me an error node_modules/axios-curlirize/src/curlirize.js:1 import { CurlHelper } from '.
Read more >
axios-curlirize - npm
This module is an axios third-party module to log any axios request as a curl command in the console. It was originally posted...
Read more >
Top 5 axios-curlirize Code Examples - Snyk
To help you get started, we've selected a few axios-curlirize examples, based on popular ways it is used in public projects. Secure your...
Read more >
axios-curlirize examples - CodeSandbox
Learn how to use axios-curlirize by viewing and forking example apps that make use of axios-curlirize on CodeSandbox. iptv-checkerNode.js CLI tool for ...
Read more >
Axios-to-curl NPM - npm.io
#Post Note: Axios third-party module to print all axios requests as curl commands in the console. This repository is forked from axios-curlirize https://www....
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