Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Error with WebPack: 7:18-43 the request of a dependency is an expression #116

Open
nudoru opened this issue Apr 14, 2016 · 4 comments
Open

Comments

@nudoru
Copy link

nudoru commented Apr 14, 2016

Receiving and error when trying to use this in a Webpack / React project. From this line

var request = require('request'.trim());

The error is:

WARNING in ./~/tabletop/src/tabletop.js Critical dependencies: 7:18-43 the request of a dependency is an expression @ ./~/tabletop/src/tabletop.js 7:18-43

@tachang
Copy link

tachang commented Jun 2, 2016

Getting this as well.

@dcfvg
Copy link

dcfvg commented Oct 19, 2016

Embarrassing indeed …
import Tabletop from 'Tabletop' seems impossible
bests

@hyshka
Copy link

hyshka commented Apr 6, 2017

There doesn't seem to be a resolution to this, did any of you get it figured out? I've tried installing the request package, I've tried forcing webpack's process.browser to true, tried webpack's noParse...no luck and I suspect this is affecting the initializing of tabletop for me.

myersjustinc added a commit to myersjustinc/nicar18-suggestions that referenced this issue Feb 12, 2018
Tabletop is being loaded as a global since it [doesn't work properly][0]
under webpack.

[0]: jsoma/tabletop#116
@darrenmothersele
Copy link

I was getting errors from webpack when using within an Angular CLI project, so I forked the repo and removed all references to Node https://github.com/darrenmothersele/tabletop

I haven't submitted a pull request, as I'm sure a better solution exists that maintains compatibility with Node, but without the build issues.

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

No branches or pull requests

5 participants