Comments (7)
Have exactly the same issue with the latest Firefox here. Has anybody found any workaround?
from arcgis-js-cli.
It's a babel configuration issue at the app level. Make sure @babel/plugin-proposal-class-properties
and @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.
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.
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.
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.
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.
This issue has been automatically closed due to inactivity.
from arcgis-js-cli.
Related Issues (20)
- How to Create Calcite App ? HOT 5
- Unknown argument: styles HOT 4
- Fonts not getting loaded from assets HOT 5
- Widget command creates the widget in a tmp folder HOT 2
- Create a new theme - failed HOT 17
- Upgrade to 4.21.0 HOT 5
- watchUtils.whenOnce not getting triggered from custom widget HOT 2
- Migrate from Jest to Cypress HOT 2
- Could not locate symbol object properly, it might be misplaced HOT 1
- Any plans to update this library? HOT 1
- v4.25 - npm ERR! code FETCH_ERROR HOT 2
- Widget not got created HOT 2
- "useDefineForClassFields" in tsconfig.json should be "false" HOT 2
- Question: Future plans for this utility HOT 4
- widget create command for exb creates folder named widget not name supplied HOT 1
- Generated CSS is inconsistent with Esri design guidelines, overflows on mobile, is not responsive HOT 1
- Deprecation of framework specific projects HOT 1
- Cannot find module 'core-js/modules/es.function.name.js' HOT 4
- Various issues starting app created with CDN
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arcgis-js-cli.