Skip to content

Commit

Permalink
[Landing] Fix build error (SyntaxError: Unexpected token '.')
Browse files Browse the repository at this point in the history
  • Loading branch information
brunolemos committed Dec 8, 2020
1 parent 38d267e commit 8d3623b
Show file tree
Hide file tree
Showing 8 changed files with 371 additions and 1,575 deletions.
22 changes: 14 additions & 8 deletions landing/next.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
const withCSS = require('@zeit/next-css')

module.exports = withCSS({
env: {
STRIPE_PUBLIC_KEY:
process.env.NODE_ENV === 'production'
? 'pk_live_SRFXNC2vJzVcCNwE7fXVmCM900PLxWhQ6D'
: 'pk_test_PvG6Vvwe8z0SdsxY7fWtvAPW00X0ooU3XF',
PADDLE_VENDOR_ID: 33705,
},
const withTM = require('next-transpile-modules')(['@devhub/core'], {
resolveSymlinks: true,
})

module.exports = withCSS(
withTM({
env: {
STRIPE_PUBLIC_KEY:
process.env.NODE_ENV === 'production'
? 'pk_live_SRFXNC2vJzVcCNwE7fXVmCM900PLxWhQ6D'
: 'pk_test_PvG6Vvwe8z0SdsxY7fWtvAPW00X0ooU3XF',
PADDLE_VENDOR_ID: 33705,
},
}),
)
24 changes: 12 additions & 12 deletions landing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,42 +17,42 @@
"start": "next -p 3001"
},
"dependencies": {
"@devhub/core": "npm:@brunolemos/[email protected]",
"@devhub/core": "npm:@brunolemos/[email protected].1-rc.0",
"@zeit/next-css": "1.0.1",
"autoprefixer": "9.6.4",
"classnames": "2.2.6",
"isomorphic-unfetch": "3.0.0",
"isomorphic-unfetch": "3.1.0",
"lodash": "4.17.20",
"next": "10.0.1",
"next-transpile-modules": "4.1.0",
"next": "10.0.3",
"next-transpile-modules": "6.0.0",
"qs": "6.9.1",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-stripe-elements": "5.0.1",
"tailwindcss": "1.1.2"
},
"devDependencies": {
"@types/classnames": "2.2.9",
"@types/classnames": "2.2.11",
"@types/lodash": "4.14.165",
"@types/node": "14.0.5",
"@types/qs": "6.9.0",
"@types/node": "14.14.11",
"@types/qs": "6.9.5",
"@types/react": "17.0.0",
"@types/react-dom": "17.0.0",
"@types/react-stripe-elements": "1.3.5",
"@types/stripe-v3": "3.1.9",
"@types/styled-jsx": "2.2.8",
"@typescript-eslint/eslint-plugin": "4.9.0",
"@typescript-eslint/parser": "4.9.0",
"@typescript-eslint/eslint-plugin": "4.9.1",
"@typescript-eslint/parser": "4.9.1",
"eslint": "7.15.0",
"eslint-config-nextjs": "1.0.6",
"eslint-config-prettier": "7.0.0",
"eslint-plugin-prettier": "3.2.0",
"mkdirp": "0.5.1",
"node-fetch": "2.6.0",
"mkdirp": "1.0.4",
"node-fetch": "2.6.1",
"now": "21.0.1",
"prettier": "2.2.1",
"shx": "0.3.3",
"ts-node": "8.6.2",
"ts-node": "9.1.1",
"typescript": "4.1.2"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion landing/src/components/common/CheckLabels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { CheckLabelProps } from './CheckLabel'
export interface CheckLabelsProps {
center?: boolean
className?: string
children: (ReactElement<CheckLabelProps> | false)[]
children: (ReactElement<CheckLabelProps> | boolean)[]
}

export function CheckLabels(props: CheckLabelsProps) {
Expand Down
14 changes: 3 additions & 11 deletions landing/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"lib": [
"esnext",
"dom",
"dom.iterable"
],
"lib": ["esnext", "dom", "dom.iterable"],
"allowJs": false,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
Expand All @@ -21,10 +17,6 @@
"sourceMap": true,
"strict": true
},
"include": [
"src", "pages"
],
"exclude": [
"node_modules"
]
"include": ["src", "pages", "next.config.js"],
"exclude": ["node_modules"]
}
Loading

0 comments on commit 8d3623b

Please sign in to comment.