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.

invalid or unexpected token at Layer.handle_error

See original GitHub issue

i am using webpack:

   new BytenodeWebpackPlugin({
                compileAsModule: true,
            })

and use pm2 with launcher:

require(‘bytenode’); require(‘./server.jsc’);

and then: pm2 start launcher.js

below error with version 13.3.0 image

below error with version 12.13.1 image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
RezaErfani67commented, Dec 6, 2019

i know… i appreciate you… but all of code is inside of bundle.js after webpacking it… then i cant pick sample of that… thanks @OsamaAbbas

0reactions
OsamaAbbascommented, Dec 6, 2019

You don’t have to put your real source. Try to write a very small example that reproduce the issue.

The error message above indicates that the issue is in your implementation. That’s why I’m asking to see what the source is.

Read more comments on GitHub >

github_iconTop Results From Across the Web

invalid or unexpected token at Layer.handle_error #40 - GitHub
i am using webpack: new BytenodeWebpackPlugin({ compileAsModule: true, }) and use pm2 with launcher: require('bytenode'); require('.
Read more >
SyntaxError: Unexpected token - JavaScript - MDN Web Docs
The JavaScript exceptions "unexpected token" occur when a specific language construct was expected, but something else was provided.
Read more >
AWS Lambda function errors in Node.js
This page describes how to view Lambda function invocation errors for the Node.js runtime using the Lambda console and the AWS CLI.
Read more >
An unhandled exception occurred: Invalid or unexpected token
Deleting my current node_modules folder and running again npm i and yarn (not together, one by one);; Tried updating Node.js, NPM and Yarn;....
Read more >
Exception filters | NestJS - A progressive Node.js framework
Nest comes with a built-in exceptions layer which is responsible for processing all unhandled exceptions across an application. When an exception is not ......
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