Skip to content

Instantly share code, notes, and snippets.

I'm working on a nextjs/react thing and wanted to see how your r2 module compared to axios.
After installing and requiring, this is what I'm getting.
-------------
ERROR Failed to compile with .. errors 8:53:10 AM
These modules were not found:
* fs in ./node_modules/r2/index.js, ./node_modules/require-dir/index.js
@xpollen8
xpollen8 / gist:cf031fabca5351e11fc4bfd5a00170fc
Created May 26, 2017 22:36
nextjs/link - how to get 'item.id' to evaluate?
import Link from 'next/link';
export default () => (
<div>
Items
<ul>
{
[
{ name: 'item one', id: 1 },
{ name: 'item two', id: 2 },
<!doctype html>
<head>
<title>buh</title>
<script>
var gigs = [
{
"datetime": "1991-06-18 00:00:00",
"url": "/htdb/gigs/1991/Jun18.html",
"venue": {
"name": "The Mean Fiddler",