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.

Failed to compile - rc.4 and rc.5

See original GitHub issue

I just ran into an issue that was not happening last night. When I tried to compile this morning I am receiving the following error:

Failed to compile.

./node_modules/vue-currency-input/dist/vue-currency-input.esm.js 267:36
Module parse failed: Unexpected token (267:36)
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
|     getMinValue() {
|         let min = this.toFloat(-Number.MAX_SAFE_INTEGER);
>         if (this.options.valueRange?.min !== undefined) {
|             min = Math.max(this.options.valueRange?.min, this.toFloat(-Number.MAX_SAFE_INTEGER));
|         }

Any suggestions? Thank you.

ps: I am using Vue 3.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
dm4t2commented, May 26, 2021

The bundle compiles to ES2020 since 2.0.0.rc5. Please make sure, that the dependency is transpiled with Babel.

See https://cli.vuejs.org/config/#transpiledependencies

Example vue.config.js:

/**
 * @type {import('@vue/cli-service').ProjectOptions}
 */
module.exports = {
  transpileDependencies: [
    'vue-currency-input'
  ]
}
1reaction
dm4t2commented, May 26, 2021

Glad to hear this 🙂 I will also update the docs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio can't build due to rc.exe
This rc.exe error can occur if the Visual C++ compiler and the Windows 10 SDK versions don't correspond to the same Visual Studio...
Read more >
Message format and return codes
A warning-level message (RC=4) calls attention to a possible error. It is probable that the program will execute correctly as written. E (error...
Read more >
Error compiling typescript in babylonjs@5.0.0-rc.4 - Bugs
Recently I have updated from 5.0.0-alpha.5 to 5.0.0-rc.4 and now I get errors compiling the typescript definition babylonjs.module.d.ts.
Read more >
Gradle 6.7-rc-4 Release Notes
This release introduces Java toolchain support that makes it much easier to build JVM projects using a different version of Java than the...
Read more >
MBLOCK 5.0.0 RC failing to compile - Software
But a even simple code did not make it through the compiler. ... will be added to it and now we are making...
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