Giter Club home page Giter Club logo

Comments (4)

guybedford avatar guybedford commented on June 26, 2024

If snowpack is using this project, one thing that would help the error message is to pass the second argument as the file name where they are calling into es-module-lexer. Then the @ in the above message would be the filename causing the parse issue, allowing seeing what character is failing the parse. It may well be JSX or TypeScript syntax causing it though. I'd suggest posting an issue on the relevant repo directly for more information.

from cjs-module-lexer.

trancephorm avatar trancephorm commented on June 26, 2024

Thanks for your reply. I'm pretty new to this so I don't know where exactly that second argument should be passed.
is that somewhere around here?

$ grep es-module-lexer * -R
node_modules/snowpack/lib/esm/scan-imports.js:import { init as initESModuleLexer, parse } from 'es-module-lexer';
node_modules/snowpack/lib/esm/rewrite-imports.js:const { parse } = require('es-module-lexer');
node_modules/snowpack/lib/esm/lexer-util.js: * Adopted from https://github.com/guybedford/es-module-lexer
node_modules/snowpack/lib/esm/scan-imports.d.ts:import { ImportSpecifier } from 'es-module-lexer';
node_modules/snowpack/lib/cjs/scan-imports.js:const es_module_lexer_1 = require("es-module-lexer");
node_modules/snowpack/lib/cjs/rewrite-imports.js:const { parse } = require('es-module-lexer');
node_modules/snowpack/lib/cjs/lexer-util.js: * Adopted from https://github.com/guybedford/es-module-lexer
node_modules/snowpack/lib/cjs/scan-imports.d.ts:import { ImportSpecifier } from 'es-module-lexer';

from cjs-module-lexer.

guybedford avatar guybedford commented on June 26, 2024

@trancephorm yes it's the second argument to that parse function that is imported.

from cjs-module-lexer.

trancephorm avatar trancephorm commented on June 26, 2024

I'll be honest: I don't have a clue what to do. :) But it doesn't matter, thanks anyways.

from cjs-module-lexer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.