久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    • <bdo id='24h9M'></bdo><ul id='24h9M'></ul>

    1. <legend id='24h9M'><style id='24h9M'><dir id='24h9M'><q id='24h9M'></q></dir></style></legend><tfoot id='24h9M'></tfoot>
        <i id='24h9M'><tr id='24h9M'><dt id='24h9M'><q id='24h9M'><span id='24h9M'><b id='24h9M'><form id='24h9M'><ins id='24h9M'></ins><ul id='24h9M'></ul><sub id='24h9M'></sub></form><legend id='24h9M'></legend><bdo id='24h9M'><pre id='24h9M'><center id='24h9M'></center></pre></bdo></b><th id='24h9M'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='24h9M'><tfoot id='24h9M'></tfoot><dl id='24h9M'><fieldset id='24h9M'></fieldset></dl></div>

        <small id='24h9M'></small><noframes id='24h9M'>

        如何修復錯誤“編譯失敗:./node_modules/@react-leafl

        How to fix error quot;Failed to compile : ./node_modules/@react-leaflet/core/esm/path.js 10:41 Module parse failed: Unexpected token (10:41)quot;(如何修復錯誤“編譯失敗:./node_modules/@react-leaflet/core/esm/path.js 10:41 模塊解析

              <bdo id='15AmC'></bdo><ul id='15AmC'></ul>
              1. <i id='15AmC'><tr id='15AmC'><dt id='15AmC'><q id='15AmC'><span id='15AmC'><b id='15AmC'><form id='15AmC'><ins id='15AmC'></ins><ul id='15AmC'></ul><sub id='15AmC'></sub></form><legend id='15AmC'></legend><bdo id='15AmC'><pre id='15AmC'><center id='15AmC'></center></pre></bdo></b><th id='15AmC'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='15AmC'><tfoot id='15AmC'></tfoot><dl id='15AmC'><fieldset id='15AmC'></fieldset></dl></div>
                  <tbody id='15AmC'></tbody>

                <legend id='15AmC'><style id='15AmC'><dir id='15AmC'><q id='15AmC'></q></dir></style></legend>

                1. <tfoot id='15AmC'></tfoot>

                  <small id='15AmC'></small><noframes id='15AmC'>

                2. 本文介紹了如何修復錯誤“編譯失敗:./node_modules/@react-leaflet/core/esm/path.js 10:41 模塊解析失敗:意外令牌(10:41)"的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在嘗試創建一個 react-typescript 應用程序以及 leaflet.我用了命令,

                  I am trying to create a react-typescript app along with leaflet. I used the command,

                  npm install leaflet react-leaflet @types/react @types/leaflet --save 安裝依賴.

                  但是當我啟動應用程序時,它說,

                  But when I start the application it says,

                      ./node_modules/@react-leaflet/core/esm/path.js 10:41
                  Module parse failed: Unexpected token (10:41)
                  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.
                  |   useEffect(function updatePathOptions() {
                  |     if (props.pathOptions !== optionsRef.current) {
                  >       const options = props.pathOptions ?? {};
                  |       element.instance.setStyle(options);
                  |       optionsRef.current = options;
                  

                  這是我的 package.json

                  Here's my package.json

                  {
                    "name": "aq-monitor",
                    "version": "0.1.0",
                    "private": true,
                    "dependencies": {
                      "@testing-library/jest-dom": "^5.12.0",
                      "@testing-library/react": "^11.2.7",
                      "@testing-library/user-event": "^12.8.3",
                      "@types/jest": "^26.0.23",
                      "@types/leaflet": "^1.7.0",
                      "@types/node": "^12.20.13",
                      "@types/react": "^17.0.5",
                      "@types/react-dom": "^17.0.5",
                      "antd": "^4.15.5",
                      "leaflet": "^1.7.1",
                      "react": "^17.0.2",
                      "react-dom": "^17.0.2",
                      "react-leaflet": "^3.2.0",
                      "react-router-dom": "^5.2.0",
                      "react-scripts": "4.0.3",
                      "typescript": "^4.2.4",
                      "web-vitals": "^1.1.2"
                    },
                    "scripts": {
                      "start": "react-scripts start",
                      "build": "react-scripts build",
                      "test": "react-scripts test",
                      "eject": "react-scripts eject"
                    },
                    "eslintConfig": {
                      "extends": [
                        "react-app",
                        "react-app/jest"
                      ]
                    },
                    "browserslist": {
                      "production": [
                        ">0.2%",
                        "not dead",
                        "not op_mini all"
                      ],
                      "development": [
                        "last 1 chrome version",
                        "last 1 firefox version",
                        "last 1 safari version"
                      ]
                    },
                    "devDependencies": {
                      "@types/react-router-dom": "^5.1.7"
                    }
                  }
                  

                  這里是 map/index.tsx

                  Here's map/index.tsx

                  import React from 'react';
                  import './styles.css';
                  import L, { LatLngExpression } from "leaflet";
                  import "leaflet/dist/leaflet.css";
                  import {MapContainer, TileLayer, Marker, Popup} from 'react-leaflet';
                  
                  const position : LatLngExpression = [59.91174337077401, 10.750425582038146];
                  
                  export default function MapJar() {
                      return (
                          <MapContainer center={position} zoom={13} scrollWheelZoom={false}>
                              <TileLayer
                                  attribution='&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
                                  url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
                              />
                              <Marker position={position}>
                                  <Popup>
                                      A pretty CSS3 popup. <br /> Easily customizable.
                                  </Popup>
                              </Marker>
                          </MapContainer>
                      );
                  }; 
                  

                  我嘗試了幾次重新安裝依賴項,但仍然沒有成功.

                  I tried re-installing dependencies several times but still didn't work.

                  我知道這是一個簡單的問題和我正在犯的錯誤,但是我無法解決此錯誤.

                  I understand this is a simple issue and an error that I am making but however, I have not been able to resolve this error.

                  感謝任何輸入.提前致謝.

                  Any input is appreciated. Thanks in advance.

                  推薦答案

                  我找到了解決方法.

                  修復步驟:-

                  打開您的 package.json 文件并編輯您的瀏覽器列表,如下所示.

                  Open your package.json file and edit your browserslist as follows.

                   "browserslist": {
                     "production": [
                        ">0.2%",
                        "not dead",
                        "not op_mini all"
                      ],
                      "development": [
                        "last 1 chrome version",
                        "last 1 firefox version",
                        "last 1 safari version"
                      ]
                  },
                  

                  "browserslist": [
                     ">0.2%",
                    "not dead",
                    "not op_mini all"
                  ],
                  

                  完成此操作后,刪除 node_modules/.cache 目錄.

                  Once you've done this, Delete node_modules/.cache directory.

                  那就試試npm install

                  npm start

                  Tadaaa!

                  參考:-

                  • https://github.com/facebook/create-react-app/issues/9468#issuecomment-694191642
                  • https://github.com/PaulLeCam/react-leaflet/issues/877

                  這篇關于如何修復錯誤“編譯失敗:./node_modules/@react-leaflet/core/esm/path.js 10:41 模塊解析失敗:意外令牌(10:41)"的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                  Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                  Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                  How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                  Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)
                  Detect FLASH plugin crashes(檢測 FLASH 插件崩潰)
                3. <legend id='hUXEh'><style id='hUXEh'><dir id='hUXEh'><q id='hUXEh'></q></dir></style></legend>
                    <tbody id='hUXEh'></tbody>

                        <i id='hUXEh'><tr id='hUXEh'><dt id='hUXEh'><q id='hUXEh'><span id='hUXEh'><b id='hUXEh'><form id='hUXEh'><ins id='hUXEh'></ins><ul id='hUXEh'></ul><sub id='hUXEh'></sub></form><legend id='hUXEh'></legend><bdo id='hUXEh'><pre id='hUXEh'><center id='hUXEh'></center></pre></bdo></b><th id='hUXEh'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='hUXEh'><tfoot id='hUXEh'></tfoot><dl id='hUXEh'><fieldset id='hUXEh'></fieldset></dl></div>
                      1. <small id='hUXEh'></small><noframes id='hUXEh'>

                        • <bdo id='hUXEh'></bdo><ul id='hUXEh'></ul>
                          • <tfoot id='hUXEh'></tfoot>
                          • 主站蜘蛛池模板: 久久精品99 | 国产综合久久 | 伊人精品在线视频 | 欧美日韩在线观看一区 | www.日日夜夜 | 色在线免费视频 | 丝袜一区二区三区 | 国产 日韩 欧美 中文 在线播放 | 国产影音先锋 | 欧美日韩视频在线播放 | 欧美日日| 精品视频成人 | 老头搡老女人毛片视频在线看 | 国产91在线精品 | 福利视频一区二区 | 99re视频在线观看 | 亚洲成av人影片在线观看 | 亚洲午夜av久久乱码 | 成人午夜免费在线视频 | 国产精品不卡一区 | 第一区在线观看免费国语入口 | 韩国理论电影在线 | 狠狠色香婷婷久久亚洲精品 | 在线日韩欧美 | 亚洲精品一区二区三区中文字幕 | 欧美激情网站 | 久久久资源 | 中文欧美日韩 | 国产亚洲精品久久19p | 国产乡下妇女做爰 | 五月天综合网 | 一区二区福利视频 | 亚洲国产精品一区二区久久 | 久久国产高清视频 | 国产日韩欧美中文字幕 | 国产精品毛片久久久久久久 | 嫩草伊人 | 欧美一a | 久久久久久网站 | 国产激情一区二区三区 | 国产成人综合一区二区三区 |