Code Monkey home page Code Monkey logo

Comments (7)

koji117 avatar koji117 commented on August 22, 2024

Have exactly the same issue with the latest Firefox here. Has anybody found any workaround?

from arcgis-js-cli.

COV-GIS avatar COV-GIS commented on August 22, 2024

It's a babel configuration issue at the app level. Make sure @babel/plugin-proposal-class-propertiesand @babel/plugin-proposal-decorators packages are installed, and babel config plugins are configured like...

"plugins": [
  [
    "@babel/plugin-proposal-decorators",
    {
      "legacy": true
    }
  ],
  [
    "@babel/plugin-proposal-class-properties",
    {
      "loose": true
    }
  ]
]

@babel/plugin-proposal-decorators needs to be the first babel plugin if you are using other plugins.

from arcgis-js-cli.

koji117 avatar koji117 commented on August 22, 2024

After trying the above solution, I faced the error below.
'import =' is not supported by @babel/plugin-transform-typescript

So I commented out import esri = __esri and replaced all __esri with esri.
Then I get the following error now.

Module parse failed: Unexpected token (65:13)
File was processed with these loaders:`
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.

Would you able to suggest any workaround at this point?

from arcgis-js-cli.

nikator avatar nikator commented on August 22, 2024

I not sure if it can be resolved with babel configuration. But workaround would be to replace babel-loader to ts-loader in webpack.config.js:

...
    module: {  
      rules: [  
        {  
          test: /\.(ts|js)x?$/,  
          exclude: /node_modules/,  
          loader: 'ts-loader'  
        },  
...

from arcgis-js-cli.

odoe avatar odoe commented on August 22, 2024

A recent PR was merged that might fix this. I'll get a new patch release with it out by end of week.

from arcgis-js-cli.

github-actions avatar github-actions commented on August 22, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from arcgis-js-cli.

github-actions avatar github-actions commented on August 22, 2024

This issue has been automatically closed due to inactivity.

from arcgis-js-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.