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

Import 0.13.2 fail #51

Closed
aquiladev opened this issue Aug 19, 2021 · 1 comment
Closed

Import 0.13.2 fail #51

aquiladev opened this issue Aug 19, 2021 · 1 comment

Comments

@aquiladev
Copy link

I have react app. Everything works well with version 0.9.1, but when I installed 0.13.2 import fails

import parser from '@solidity-parser/parser';
as well as
import * as parser from '@solidity-parser/parser';
const parser require('@solidity-parser/parser');

error:

TypeError: __webpack_require__(...).join is not a function
   ...

on localhost:

node_modules/@solidity-parser/parser/dist/index.cjs.js:25092
  25089 |   if (typeof BROWSER !== "undefined") {
  25090 |     module2.exports = require_Solidity();
  25091 |   } else {
> 25092 |     module2.exports = require("fs").readFileSync(require("path").join(__dirname, "./antlr/Solidity.tokens")).toString();
  25093 |   }
  25094 | });
  25095 | 

Repo: https://github.com/aquiladev/remix-sol2uml

@fvictorio
Copy link
Contributor

Hi @aquiladev. I think this is the same issue as #47. I'm going to close this one for bookkeeping reasons, but please re-open if you think this is a different issue.

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