Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get the Simple map example to work #2

Closed
barthogenes opened this issue Jun 23, 2021 · 4 comments
Closed

Cannot get the Simple map example to work #2

barthogenes opened this issue Jun 23, 2021 · 4 comments

Comments

@barthogenes
Copy link

Hi,
I was trying to get the Simple map example to work from https://mmomtchev.github.io/rlayers/#/simple,
but all I get is the following error on build:
image
I made sure to use React version 16.8.0.
My dependencies from the package.json:

"dependencies": {
    "@testing-library/jest-dom": "^5.11.4",
    "@testing-library/react": "^11.1.0",
    "@testing-library/user-event": "^12.1.10",
    "@types/jest": "^26.0.15",
    "@types/node": "^12.0.0",
    "@types/react": "^16.14.8",
    "@types/react-dom": "^16.9.13",
    "ol": "^6.5.0",
    "react": "^16.8.0",
    "react-dom": "^16.8.0",
    "react-scripts": "4.0.3",
    "rlayers": "^1.0.2",
    "typescript": "^4.1.2",
    "web-vitals": "^1.0.1"
  },
  "devDependencies": {
    "@types/ol": "^6.5.1"
  }

Am I doing something wrong?

@mmomtchev
Copy link
Owner

Can you post your tsconfig.json

@barthogenes
Copy link
Author

Here it is:

{
  "compilerOptions": {
    "target": "es5",
    "lib": [
      "dom",
      "dom.iterable",
      "esnext"
    ],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "noFallthroughCasesInSwitch": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "react-jsx"
  },
  "include": [
    "src"
  ]
}

@mmomtchev
Copy link
Owner

@barthogenes, you can temporally set "strict": false, I will soon release a new version the compiles when strict mode is enabled

@barthogenes
Copy link
Author

Turning off strict mode fixed it indeed :)

@barthogenes, you can temporally set "strict": false, I will soon release a new version the compiles when strict mode is enabled

Thanks that would be great!
Closing this ticket then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants