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

Perspective issue while building #932

Closed
Madasamy26 opened this issue Feb 19, 2020 · 1 comment
Closed

Perspective issue while building #932

Madasamy26 opened this issue Feb 19, 2020 · 1 comment
Labels
bug Concrete, reproducible bugs JS

Comments

@Madasamy26
Copy link

Madasamy26 commented Feb 19, 2020

Bug Report

Steps to Reproduce:

  1. ...step 1 - Upgrade all perspective libraries to latest
  2. ...step 2 then try to build .

Expected Result:

expecting output

Actual Result:

ERROR in ./node_modules/@finos/perspective/dist/umd/perspective.inline.js 1:166
Module parse failed: Bad character escape sequence (1:166)
File was processed with these loaders:
 * ./node_modules/@finos/perspective-webpack-plugin/src/js/switch-inline-loader.js
 * ./node_modules/source-map-loader/index.js
You may need an additional loader to handle the result of these loaders.
> module.exports = require("C:\dump\perespective-component\node_modules\source-map-loader\index.js!C:\dump\perespective-component\node_modules\@finos\perspective\dist\umd\perspective.inline.js");
 @ ./src/perspective.ts 8:46-75
 @ ./src/index.ts
i 「wdm」: Failed to compile.
× 「atl」: Checking finished with 1 errors
[at-loader] ./src/perspective.ts:30:21 
    TS2709: Cannot use namespace 'PerspectiveViewer' as a type.


tsConfig:
{
  "compilerOptions": {
    "target": "esnext",
    "module": "commonjs",
    "lib": ["esnext", "dom"],
    "outDir": "./dist",
    "rootDir": ".",
    "removeComments": true,
    "noImplicitThis": false,
    "strict": true,
     "noImplicitAny": true,
     "allowJs": true, 
    "moduleResolution": "node",
    "allowSyntheticDefaultImports": true,
    "esModuleInterop": true,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "declaration": true,
    "forceConsistentCasingInFileNames": true,
        "importHelpers": true,
        "noEmitHelpers": true,
        "inlineSourceMap": false,
        "sourceMap": true,
        "downlevelIteration": true,
        "pretty": true,
    "plugins": [
      { "name": "typescript-plugin-css-modules" },
      {
        "name": "typescript-tslint-plugin",
        "alwaysShowRuleFailuresAsWarnings": true,
        "configFile": "./tslint.json"
      },
      {
        "name": "typescript-lit-html-plugin"
      }
    ]
  },
  "includes": [
    "src/@types/plugin/externals.d.ts",
    "src/@types/plugin/vendor.d.ts"
 ]
}

@timkpaine timkpaine added bug Concrete, reproducible bugs JS labels Feb 20, 2020
@texodus
Copy link
Member

texodus commented Mar 4, 2020

Thanks for the report!

This has been resolved and is available now in 0.4.5. If you're still having issues with this version, please feel free to re-open.

@texodus texodus closed this as completed Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Concrete, reproducible bugs JS
Projects
None yet
Development

No branches or pull requests

3 participants